CHAPTERTWO
Be focused and you will archive alot. choose your ON C
Explore moreBe focused and you will archive alot. choose your ON C
Explore moreLorem ipsum dolor sit amet consectetur adipisicing elit. Hic odit rem dolorum molestiae fugit deserunt exercitationem recusandae, itaque ratione harum sit repellat dolor temporibus deleniti non voluptatem nostrum quas? Cumque veniam, molestias id natus pariatur dolores aut nemo iure facilis expedita, temporibus exercitationem ullam ex officiis reiciendis quaerat enim consequuntur.
"friend" is a word mode of six character i.e. a string.
As we already know, numerical data can be stored as, integers and decimals
it's simple to understand the difference between them- integers dont have decimal part
Also, c# has simple integrations for various APIs (application program interface) such as payment gate way
sample of integers: 18928, 79789, 98009 etc
some example of decimals are: 10.0003, 12.0007 etc
in c#, we have two basic type of Variables to represent numbers-integers and decimal
the big question is where do we store them
let's just say we have a number 5, and we want to store it somewere in our code, for that we purpose Variables (a varible is a container where we store things)
in real life, we might put our clothes in different places, however, this can't be the case with computers. By the rules of programing, we have to put our clothes in our wardrobe and we have to keep our books on our bookshelf. so everything must be placed appropraitely!
so for our data that we want to store we need to choose the right variable
TYPES:
we use integer type of variables to store whole numbers - keyword "int"
for storing decimal type of numbers, we use decimal variables-keyword "Double"
if we want to store a single character we use character variables-keyword "char"
in the case of storing words we use the string variable keyword "string"
you have already become familiar with the basic types of variables. now let's deep into the pool of variables.
We need to choose the right of variable in order to store integers in c#. declaring integer type of variable in c# is pretty striaghtforward.
we use a keyword called "int" for that purpose
`` `
the example bllow:
it is as simple as that!
now let's break it down
int-- represent the type of the variable we declared.
A represents the name of the variable
so let's see what you have learned so far!
NOTE:Do not be blocked down by using all orther jagon like "using", "namespace" , "class" etc. as we go ahead we shall pick them one by one.
Using System; namespace CodeSample{ class Program { static void Main(string[] args){ int A; } } }
vildash network team has had alot of impact on others but here are the vildash network team testimonies and expirience while working with the team
you can now connect and text other users from our database. you just neeed to click bellow to message them
WE HAVE CODE EDITORS FOR LANGUAGES LIKE C, C#, C++, HTML, CSS, javascript, JAVA VISUAL BASIC
We dont just teach you to code we teach you to code and build amazing systems.we are group of expert who wants to promote our field of studies