1. C# console application
1. Output the statement Console.WriteLine() to the console, the output will flash on the console, you need to add the statement: Console.ReadKey(); Wait for the process. 2. Enter the statement from the keyboard to the screen: duoble a=Conver.ToDouble(Console.ReadLine()); The keyboard input defaults to String type, and the statement Conver.ToDouble() is used to force it to be converted to double type, otherwise an error will be reported. 3. When printing out the statement Console.WriteLine("The value of your input a is: {0}", a);
type of data | illustrate | Ranges | Corresponds to the structure in the system assembly |
sbyte | signed 8-bit integer | -128—127 | SByte |
byte | unsigned 8-bit integer | 0—255 | Byte |
short | signed 16-bit integer | -32768—32767 | Int16 |
ushort | unsigned 16-bit integer | 0—65535 | UInt16 |
Int | signed 32-bit integer | -2147489648—2147483647 | Int32 |
uint | unsigned 32-bit integer | 0—42994967295 | UInt32 |
long | signed 64-bit integer | -2^63—2^63 | Int64 |
ulong | unsigned 64-bit integer | 0—2^64 | UInt64 |