Deret Perkalian




#include

void main()
{
int baris, kolom, x, y;

printf("Masukkan nilai baris : ");scanf("%d",&baris);
printf("Masukkan nilai kolom : ");scanf("%d",&kolom);
printf("\n\n");

for(x=1;x<=baris;x++)
{
printf("%5d |",x);
for(y=1;y<=kolom;y++)
{
printf("%5d",x*y);
}
printf("\n");
}

}

0 comments:

Post a Comment