Write the code in C sharp, Display your name on screen by prefixing hello?
Answer:
1: using Syatem; 3: class Inout 4: { 5: public static void Main() 6: { 7: Console.write("Enter your name :"); 8: string strName = Console.ReadLine(); 9: Console.writeLine("Hello " + strName); 10: } 11: }
Output
Enter your name : Ramesh Hello Ramesh