View Single Post
  #1 (permalink)  
Old 03-30-2008, 07:14 PM
TheMagicalRock TheMagicalRock is offline
Newbie
 
Join Date: Mar 2008
Posts: 2
Rep Power: 0
TheMagicalRock is on a distinguished road
Default Question about C# user int input

Hello, I have been programming for about two weeks in c#, and I have one question, that I could not find by searching the web.

while coding a string input, it goes like:
Code:
string sname = Console.ReadLine();
Console.WriteLine("you just wrote {0}", sname);
My question though, is how you would do an input with an int value, like the user inputting a value for int x, or something like that. Thanks for any help given.
Reply With Quote

Sponsored Links