Tuesday, October 6, 2009

G++ code's that prints Multiplication Table!!!

#include
#include
int main(){
int x=0,y=0,row,col,prod=0;
printf("\n Enter number of row: ");
scanf("%d",&row);
printf("\n Enter number of column: ");
scanf("%d",&col);
printf("\n\n");
for(x=1;x<=row;x++)
{
for(y=1;y<=col;y++)

{
prod=x*y;
printf(" %d ",prod);
}
printf("\n");
}
printf("\n\n Disclammer Jesson A. Balaoing");
return 0;
}

No comments:

Post a Comment