archangelmihail

Input Test

Dec 6th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. double number1, number2, number3, number4, number5;
  2.             bool test = double.TryParse(Console.ReadLine(), out number1);
  3.             test = double.TryParse(Console.ReadLine(), out number2)&test;
  4.             test = double.TryParse(Console.ReadLine(), out number3)&test;
  5.             test = double.TryParse(Console.ReadLine(), out number4)&test;
  6.             test = double.TryParse(Console.ReadLine(), out number5)&test;
  7.             if (test)
  8.             {
  9.                 .......
  10.             }
  11.             else
  12.             {
  13.                 Console.WriteLine("WRONG INPUT");
  14.             }
Advertisement
Add Comment
Please, Sign In to add comment