Monday, 25 November 2013

Simple C# program to display anything u have typed-----------

Code:

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

namespace SimpleCsharpProgam
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("-------------Enter anything to display--------------");
            String str = "";
            str = Console.ReadLine();
            Console.WriteLine("\n");
            Console.WriteLine(str);
            Console.ReadKey();
        }
    }
}

Output:

No comments:

Post a Comment