Echo some stats : Console : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Console »

 

Echo some stats








    
 

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

class Program {
    static void Main(string[] args) {
        Console.Write("Enter your name: ");
        string s;
        s = Console.ReadLine();
        Console.WriteLine("Hello, {0} ", s);
        Console.Write("Enter your age: ");
        s = Console.ReadLine();
        Console.WriteLine("You are {0} years old", s);

    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Console