#include <iostream>
#define SIZE 10
using namespace std;

int arr[SIZE][SIZE];

int main()
{

    int num = 10;
    int cnt = 1;

    for(int i = 0; i < num; i++)
    {
        for(int j = 0; j < num; j++)
        {
            arr[i][j] = cnt++;
            cout << arr[i][j] << " ";
        }
    cout << "\n";
    }

}

카테고리:

업데이트:

댓글남기기