Solution:NIIT/GNIIT Sonugiri0032@gmail.com

Wednesday, January 06, 2016

How to print a string in C#

How to print a string in C#


Structure of the Problem Requirements 

This program simply print a string in C#. The Console.ReadKey function is used to stop the screen after the execution of program to check the output.

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 Wel Come to Programming Hub !\n");
            Console.WriteLine(" Hello C# !. ");
            Console.ReadKey();
        }
    }
}

Output of the Program

print a string in C#
Share:

0 comments:

GNIITSOLUTION GNIIT SOLUTION. Powered by Blogger.

Translate

Blog Archive

Unordered List