This program is about to make any table by ging the table number ,its starting number & ending number .I need a help that when the computer finished his output it shows a message
i.e "Do you want to Continue or Not [Y----N].
After showing this message if the user press "Y" the program again start & if the user press "N" then it quit .
Please can u tell me how can i do this . The source code is as under.
#include<stdio.h>
#include<conio.h>
void main()
{
int t,s,e;
clrscr();
printf("\n\tPlease enter the Table Number : ");
scanf("%d",&t);
printf("\n\tPlease enter the starting Number : ");
scanf("%d",&s);
printf("\n\tPlease enter the Ending Number : ");
scanf("%d",&e);
while(s<=e)
{
printf("\n%d * %d = %d",t,s,t*s);
s++;
}
getch();
}
The out put of my program is suppose the table number is 2,starting number 1 & ending is 10.
2 * 1 = 2
2 * 2 = 4
2 * 3 = 6
2 * 4 = 8
2 * 5 = 10
2 * 6 = 12
2 * 7 = 14
2 * 8 = 16
2 * 9 = 18
2 * 10= 20