Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int matrix[9] = {1, 2, 3,
  6.                      4, 5, 6,
  7.                      7, 8, 9};
  8.  
  9.     for (int i = 0; i < 9; i++)
  10.         for (int j = i + 1; j < 9; j++)
  11.             if (matrix[i] == matrix[j])
  12.                 printf("Tem um ou mais numeros repetidos");
  13.  
  14.     _getch();
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement