Saturday, 13 December 2014

C PROGRAM FIND THE TABLES OF NUMBERS (COLROW)

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);

}

OUTPUT:

No comments:

Post a Comment