Tech

How to Create Table in While loop Using C++ Program

How to Create Table in While loop Using C++ Program: Hello, Everyone today i am going to share with you guys that how to Create table in While Loop, While Using C++ Program TurboC++.

How to Create Table in While loop Using C++ Program

How to Create Table in While loop Using C++ Program

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int b,c,d,a;
cout<<endl<<“Enter the Table value=”;cin>>b;
cout<<endl<<“Enter the Starting value=”;cin>>c;
cout<<endl<<“Enter the Ending value=”;cin>>d;
a=c;
while (a<=d)
{
cout<<b<<“x”<<a<<“=”<<a*b;
cout<<endl;
a++;
}
getch();
}

Output Display

How to Create Table in While loop Using C++ Program

Read Also:How to Create Calculator Using Switch in C++

Related Articles

Leave a Reply

Back to top button