Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int count = 0;
- int[] a = new int[15];
- for(int i=0; i<14; i++)
- {
- Console.WriteLine("enter numbers");
- a[i] = int.Parse(Console.ReadLine());
- }
- for (int i = 1; i <= 14; i++)
- {
- if(a[0] != a[i])
- count++;
- }
- if(count ==0)
- Console.WriteLine("all the num's are equal");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement