+ 1

Type the program receives an integer n, then n receives correct preparation of a program that finds and prints the value of the

please If some one know how tell me and thanks for him so much

26th Nov 2016, 10:33 AM
haytham rmmal
haytham rmmal - avatar
2 ответов
+ 5
int n; try { n = Convert.Int32(Console.ReadLine()); } catch (Exception) { Console.WriteLine("Please input a numerical value! "); n = 0; Environment.Exit(0); } Console.WriteLine(n);
27th Nov 2016, 4:17 AM
Wen Qin
Wen Qin - avatar
+ 1
OK thanks very much for your help
27th Nov 2016, 4:56 AM
haytham rmmal
haytham rmmal - avatar