Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int i=0,j=0,n,x,y=0,o=0;
- int y[3][3] = { { 0, 1, 2 }, { 3, 4, 5 },{6,7,8} };
- cin >> n,x;
- for ( i ; i <= n; i++)
- {
- for (j; j <= n; j++)
- if (n == y[i][j])
- cout << i;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement