Console.WriteLine("Hello World!");
Console.Write("Congratulations!");
Console.Write(" ");
Console.Write("You wrote ypur first lines of code.");
Console.WriteLine(123);
float ~6-9 digits double ~15-17 digits decimal 28-29 digits`
To create a float literal, append the letter F after the number. In this context, the F is called a literal suffix. The literal suffix tells the compiler you wish to work with a value of float type. You can use either a lower-case f or upper-case F as the literal suffix for a float.
Notice that the float data type is the least precise, so it's best to use this data type for fixed fractional values to avoid unexpected computation errors.
Console.WriteLine(0.25F);
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.
Console.WriteLine(2.625);
To create a decimal literal, append the letter m after the number. In this context, the m is called a literal suffix. The literal suffix tells the compiler you wish to work with a value of decimal type. You can use either a lower-case m or upper-case M as the literal suffix for a decimal.
Console.WriteLine(12.39816m);
Console.WriteLine("true");
Console.WriteLine(true);
char userOption;
int gameScore;
decimal particlesPerMillion;
bool processedCustomer;
The var keyword tells the compiler to infer the data type of the variable based on the value it is initialized to.
You'll likely see the var keyword as you read other people's code; however, you should use the data type when possible.
An escape character sequence is an instruction to the runtime to insert a special character that will affect the output of your string. In C#, the escape character sequence begins with a backslash \ followed by the character you're escaping. For example, the \n sequence will add a new line, and a \t sequence will add a tab.
Console.WriteLine("Hello\nWorld!");
Console.WriteLine("Hello\tWorld!");
once you changed the code you have to build the project before running
run the code






