The following codes will help you to display various contents in the console.
Display a simple text in the console :
|
1 2 3 |
Console.WriteLine("Simple Text"); // This is to display a simple text in the console. Output : Simple Text // This will be the output |
Display an integer in the console :
|
1 2 3 4 5 |
int myNumber = 5; // Consider an integer object Console.WriteLine(myNumber); // This is to display an integer in the console. Output : 5 // This will be the output |
Display a combination of string and integer in the console :
int myNumber = 5; // Consider an integer objectConsole.WriteLine("My Number is "+myNumber+"."); // This is to display a combination of string and integer in the console.
Output : My Number is 5. // This will be the output
Incoming search terms:
- Microsoft|Web eCommerce iOS Android ArduinoandSEO



