#include <stdio.h> int main() { int a[9],b[3][3]; int i,j,index = 0; for(i = 0;i < 3;i++){ for(j = 0;j < 3;j++){ b[i][j] = a[index ++]; } } return 0; }