#include <iostream>
using namespace std;

int main() 
{
    int i, j;    

    //Declaration
    int alpha[10][20];
    
    //Initialization
    for(i = 0; i < 10; i++) {
        for(j = 0; j <20; j++) 
	    alpha[i][j] = 0;
    }

    //Store 1 in the first row and 2 in the remaining rows
    for(i = 0; i < 10; i++) {
        for(j = 0; j < 20; j++) {
	    if(i == 0)
		alpha[i][j] = 1;
            else
		alpha[i][j] = 2;
	}
    }
     
    //Store 5 in the first column, and twice the value in the subsequence columns. 
    for(i = 0; i < 10; i++) {
	alpha[i][0] = 5;
    }
    
    for(j = 1; j < 20; j++) {
	for(i = 0; i < 10; i++) {
	    alpha[i][j] = 2*alpha[i][j-1];
	}
    }

    //Print alpha one row per line
    cout << "Print alpha one row per line \n";
    for(i = 0; i < 10; i++) {
	for(j = 0; j < 20; j++) {
	    cout << alpha[i][j];
	}
        cout << "\n";
    }

    //print alpha one column per line
    cout << "Print alpha one column per line \n";
    for(j = 0; j < 20; j++) {
        for(i = 0; i < 10; i++) {
	    cout << alpha[i][j];
	}
	cout << "\n";
    }
    cout << endl;


    return 0;
}
