Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. while (number_of_parameters <= 2)
  2. {
  3. try
  4. {
  5. Console.Write("Enter number of parameters that your function will have: ");
  6. number_of_parameters = uint.Parse(Console.ReadLine());
  7. if (number_of_parameters == 0 || number_of_parameters == 1 || number_of_parameters == 2)
  8. Console.WriteLine("Function cannot be linear!");
  9. }
  10. catch (Exception)
  11. {
  12. Console.WriteLine("You have to input uint type!");
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement