Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int matrix[9] = {1, 2, 3,
- 4, 5, 6,
- 7, 8, 9};
- for (int i = 0; i < 9; i++)
- for (int j = i + 1; j < 9; j++)
- if (matrix[i] == matrix[j])
- printf("Tem um ou mais numeros repetidos");
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement