C# Notes(Incomplete(Doing It for Access))
C# Notes(Incomplete(Doing It for Access))
1.Write your first code using C# (Get started with C#, Part 1)
Lesson 2: Store and retrieve data using literal and variable values in C#
You use char (short for character) whenever you have a single alphanumeric
character for presentation (not calculation).
E.G.
If you want to display a numeric whole number (no fractions) value in the output
console, you can use an int (short for integer) literal
Float: To create a float literal, append the letter F after the number. Both capital
and lowercase F can be used. In this context, the F is called a literal suffix.
Double: To create a double literal, just enter a decimal number. The compiler
defaults to a double literal when a decimal number is entered without a literal suffix.
Decimal: To create a decimal literal, append the letter m after the number. Both
capital and lowercase M work. In this context, the m is called a literal suffix
Var
Lesson 3: Perform basic string formatting in C#
😎
Completed the challenge like a boss
The plus sign (+) can be used for basic operations for additions.
When put in a sentence with strings with pluses it would be referred as the
number the variable is assigned too
If u want to add a number to the variable in a sentence with strings just put the
variable and the number in parenthesis with a plus sign.
If statements:
Arrays: