// Write a program to take as input your name and print “Hello name”. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string name = string.Empty; Console.WriteLine("Enter your Name:"); name = Console.ReadLine(); Console.Clear(); Console.Write("\n"); Console.WriteLine("Hello " + name); Console.ReadKey(); } } }
No comments:
Post a Comment