Write a program to display the tables of numbers:
#include<stdio.h>
#include<conio.h>
#define COLMAX 10
#define ROWMAX 20
int main()
{
int row, column,
y;
clrscr();
row=1;
do
{
column=1;
do
{
y=row*column;
printf("%4d",y);
column=column+1;
}
while(column<=COLMAX);
row=row+1;
printf("\n");
}
while(row<=ROWMAX);
getch();
return(0);
No comments:
Post a Comment