Program

#include<stdio.h>
int main()
{
    int a[5][2]={
        {0,0},
        {1,2},
        {2,4},
        {3,6},
        {4,8}};
    int i,j;
    for(i=0;i<5;i++)
        for(j=0;j<2;j++){
            printf("%d\t",a[i][j]);
            if(j==1)
                printf("\n");
        }
    return 0;
}

Output

0   0
1   2
2   4
3   6
4   8

Leave a Reply

Your email address will not be published. Required fields are marked *