Print table of tables between interval
C program to print table of tables between an interval.
The program will ask the user to enter the starting number and ending number as starting and ending point. The table of all the numbers that comes in between these two given numbers including both the number will be printed at output screen.
Program
#include<stdio.h>
#include<conio.h>
void main()
{
void main()
{
int i, j;
int start, end;
printf("Enter starting and ending number\t:");
scanf("%d%d",&start, &end);
for(i = start; i <= end; i++)
{
for(j = 1; j <= 10; j++)
{
printf(" %3d", i*j);
}
printf("\n");
}
getch();
}
Output
Enter starting and ending number :5
15
5 10 15 20 25 30 35 40 45 50
6 12 18 24 30 36 42 48 54 60
7 14 21 28 35 42 49 56 63 70
8 16 24 32 40 48 56 64 72 80
9 18 27 36 45 54 63 72 81 90
10 20 30 40 50 60 70 80 90 100
11 22 33 44 55 66 77 88 99 110
12 24 36 48 60 72 84 96 108 120
13 26 39 52 65 78 91 104 117 130
14 28 42 56 70 84 98 112 126 140
15 30 45 60 75 90 105 120 135 150