Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. int count = 0;
  2. int[] a = new int[15];
  3.  
  4. for(int i=0; i<14; i++)
  5. {
  6. Console.WriteLine("enter numbers");
  7. a[i] = int.Parse(Console.ReadLine());
  8. }
  9. for (int i = 1; i <= 14; i++)
  10. {
  11. if(a[0] != a[i])
  12. count++;
  13. }
  14. if(count ==0)
  15. Console.WriteLine("all the num's are equal");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement