+ 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
2 Answers
+ 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);
+ 1
OK thanks very much for your help