Solution:NIIT/GNIIT Sonugiri0032@gmail.com

Wednesday, January 06, 2016

C# program that takes input and prints output on console screen

C# program that takes input and prints output on console screen


Structure of the Problem Requirements 

This simple C# program takes input and prints output on console screen. The program welcome user with welcome message and his name.

Source Code

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

namespace LEP
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("\t \t  Hello C# !.\n \n");
            Console.Write("Enter Your Name : ");
            string name;
            name = Console.ReadLine();
            Console.WriteLine(name + " WelCome to Programming Hub.");
            Console.ReadKey();
        }
    }
}

Output of the Program

C# program that takes input and prints output on console screen
Share:

0 comments:

GNIITSOLUTION GNIIT SOLUTION. Powered by Blogger.

Translate

Blog Archive

Unordered List