1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
namespace ConsoleApplication2 { class Program { static void Main(string[] args) { Console.Write("Shashangka-"); Console.Write("Shekhar-"); Console.Write("Mandal"); //Output: Shashangka-Shekhar-Mandal Console.WriteLine(); Console.WriteLine("ASp.Net"); Console.WriteLine("MVC"); //Output: ASp.Net // MVC Console.ReadLine(); } } } |
Explanation:
1 |
Console.Write(""); |
Stay on the same line.
1 |
Console.WriteLine(); |
Move to the next line.
Post a comment