Learn and Test Table Software in C++

#include<stdio.h>
#include<conio.h>
int main()
{
int x=0;
int s=0;
int e=0;
int ss=0;
int ee=0;
int rma=0;
int tst=0;
hhhh:
printf(“Which table do you want to learn ?”);
scanf(“%d”,&x);
zhzh:
printf(“Where do you want to start the table ? “);
scanf(“%d”,&s);
ss=s;
printf(“Where do you want to end the table ? “);
scanf(“%d”,&e);
ee=e;
printf(“Table of %d”,x);
printf(“\n===============”);
zzhh:
printf(“\n%d x %d = %d”,x,s,x*s);
s=s+1;
if(s<=e)
goto zzhh;
printf(“\n===============”);
printf(“\n\nDo you want to change the start and end loop 1-Yes..2-No”);
scanf(“%d” ,&rma);
if(rma==1)
goto zhzh;
else
printf(“\n Do you want to learn the table again 1-Yes..2-No”);
scanf(“%d”,&rma);
if(rma==1)
goto hhhh;
else
printf(“do you want to take the test 1- Yes ..2 no”);
scanf(“%d” ,&tst);
if(tst==1) goto test;
else goto thank;
test:
printf(“Test Table of %d”,x);
printf(“\n===============”);
hhzz:
ccc:
printf(“\n%d x %d = %s”,x,ss,”?”);
scanf(“%d”, &tst);
if(tst==x*ss)
ss=ss+1;
else goto ccc;
if(ss<=ee)
goto hhzz;
printf(“\n===============”);
printf(“\nGreat Test Completed”);
return 0;
thank:
printf(“\nThank You”);
printf(“\n Good Bye 🙂 “);
printf(“\n (Subscrube to Lunar Computer College)”);
return 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *