It-Tnejn, Jannar 07, 2008

Very Simple C.Sharp Programming for noobs

using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication4
{//namespace
class Program
{//class
static void Main(string[] args)
{//main
Console.WriteLine("PRESS ENTER TO CONTINUE");
Console.ReadLine();
string name, surname;
int age;
Console.WriteLine("Please input name");
name = Console.ReadLine();
Console.WriteLine("Please input surname");
surname = Console.ReadLine();
Console.WriteLine("Please input age");
age = Convert.ToInt32(Console.ReadLine());
Console.ReadLine();
Console.WriteLine("Your name and surname are {0} {1} respectively. You are {2} years old.", name, surname, age);
Console.ReadLine();
}
}
}

1 comment:

Anonymous said...

Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my site, it is about the CresceNet, I hope you enjoy. The address is http://www.provedorcrescenet.com . A hug.