Advertisement
Heshammmmhm

Untitled

Jan 19th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int i=0,j=0,n,x,y=0,o=0;
  6. int y[3][3] = { { 0, 1, 2 }, { 3, 4, 5 },{6,7,8} };
  7. cin >> n,x;
  8. for ( i ; i <= n; i++)
  9. {
  10.  
  11. for (j; j <= n; j++)
  12.  
  13. if (n == y[i][j])
  14. cout << i;
  15. }
  16.  
  17.  
  18.  
  19. return 0;
  20.  
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement