7-8

#include<stdio.h>

int main(void)

{

         int i,j;

         int a[3][2];

 

         for(i=0;i<3;i++)

                   for(j=0;j<2;j++)

                            a[i][j]=i+j;

                   for(i=0;i<3;i++){

                            for(j=0;j<2;j++)

                                     printf("%4d",a[i][j]);

                            printf("\n");

                   }

 

                   return 0;

}

posted @ 2013-10-06 15:35  zhaoyang16  阅读(119)  评论(0编辑  收藏  举报