Print lines in console
Last updated:
8/21/2020
⁃
Difficulty:
Easy
Write a C# program that prints Hello on the first line and your name on the next line.
Input
-
Output
- Hello
- Jonny
Solution
- using System;
- public class PrintLinesConsole
- {
- public static void Main(string[] args)
- {
- Console.WriteLine("Hello");
- Console.WriteLine("Juan");
- }
- }