Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
314 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
	int n=0;
	int mas[3][3];
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 3; j++)
		{
			mas[i][j] = n;
			n += 1;
		}
	}
	for (int i = 0; i < 3; i++) {
		for (int j = 0; j < 3; j++)
		{
			cout << mas[i][j];
		}
		cout << endl;
	}
}