Reading Floating-Point Numbers From the Console

To read a real number from the console, it is necessary to а declare a variable again, define its numeric type, and also use the standart command for reading information from the console:

var num = double.Parse(Console.ReadLine());

results matching ""

    No results matching ""