Input and output in C# by lay method




Input and output in C# by the lay method

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MYPROJECT.startup
{
  class startupday1
  {
  static void Main()
  {
            Console.Write("enter name\n");
            string name=Console.ReadLine();
            Console.Write("the name is {0}",name);
            Console.ReadLine();
        }
 }
}
OUTPUT




Comments

Popular posts from this blog

Input and output in C#

Printing Hello World in C#

Passing value without reference in C#