Read double from keyboard and parse it
using System;
class MainClass {
public static void Main() {
double s1;
string str;
Console.WriteLine("Enter length of first side: ");
str = Console.ReadLine();
s1 = Double.Parse(str);
}
}
Output Enter length of first side:
12
|
HTML code for linking to this page:
Related in same category :
-
-
|