MuffinMonster

Class Task 43#

Dec 26th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleApplication1
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. bool ok = true;
  13. int[] sum = new int[5];
  14. for (int i = 0; i < 5; i++)
  15. {
  16. sum[i] = int.Parse(Console.ReadLine());
  17. }
  18. for (int i = 0; i < 3; i++)
  19. {
  20. if (sum[i] >= sum[i + 1])
  21. {
  22. ok = false;
  23. }
  24. }
  25. Console.Write(ok);
  26. Console.ReadLine();
  27. }
  28. }
  29. }
Add Comment
Please, Sign In to add comment