int ANGKA2D[5][2]={10,100,20,200,30,300,40,400,50,500};
SOURCE CODE:
#include <stdio.h> #include <stdlib.h> int ANGKA2D[5][2]={10,100,20,200,30,300,40,400,50,500}; int n,m; int main() { for(n=0; n<5; ++n)//perulangan sebanyak array index [5] for(m=0; m<2; ++m)//melakukan perulangan sebanyak array index [2] printf("ANGKA 2D [%d][%d]= %d\n", n, m, ANGKA2D[n][m]); system("pause"); return 0; }
No comments:
Post a Comment