- 1
How i have to take a input
I don't know
3 Answers
+ 3
Below is a basic example of getting a number from a user.
double num = double.parse(Console.ReadLine());
Console.WriteLine(num);
+ 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.
+ 1
Console.ReadLine(); reads the line of the console input