integer types code example
Example 1: Integer Types
int myNum = 100000;
Console.WriteLine(myNum);
Example 2: Integer Types
double myNum = 19.99D;
Console.WriteLine(myNum);
Example 3: Integer Types
float myNum = 5.75F;
Console.WriteLine(myNum);
Example 4: Integer Types
long myNum = 15000000000L;
Console.WriteLine(myNum);
Example 5: Integer Types
int myNum = 5; // Integer (whole number)
double myDoubleNum = 5.99D; // Floating point number
char myLetter = 'D'; // Character
bool myBool = true; // Boolean
string myText = "Hello"; // String