- 1

How i have to take a input

I don't know

2nd Dec 2016, 3:11 PM
shail singh
shail singh - avatar
3 Answers
+ 3
Below is a basic example of getting a number from a user. double num = double.parse(Console.ReadLine()); Console.WriteLine(num);
2nd Dec 2016, 5:12 PM
Ousmane Diaw
+ 1
Console.ReadLine() method is used for taking the input. it considers all the input as string, so you need to convert it to the format you need, like int, double, float, bool.
3rd Dec 2016, 5:25 PM
VinsTheCoder
VinsTheCoder - avatar
+ 1
Console.ReadLine(); reads the line of the console input
4th Dec 2016, 12:00 AM
Edwin Rybarczyk