Advertisement
ajreuri23

שאלה 15

Dec 1st, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. static void Main(string[] args)
  2. {
  3. int[] a = new int[int.Parse(Console.ReadLine())];
  4. int[] b = new int[a.Length];
  5. int i, Count = 0;
  6. for (i = 0; i < a.Length; i++)
  7. {
  8. a[i] = int.Parse(Console.ReadLine());
  9. b[i] = int.Parse(Console.ReadLine());
  10. if (a[i] == b[i])
  11. Count++;
  12.  
  13. }
  14. if (Count == a.Length)
  15. Console.Write("Oto Oreh");
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement