Write a program that generates a table of any number

Program that generates a table of any number

Write a program that generates a table of any number

 

Object: Write a program that generates a table of any number. C++ Projects.

Code:

#include<iostream>
#include<conio.h>
using namespace std;
void main()
{
int no,i,tab;
cout<<” :Table Generator:\n\n”;
cout<<“Enter Any Number: “;
cin>>no;
for(i=1;i<=10;i++)
{
tab=no*i;
cout<<no<<” * “<<i<<“= “<<tab<<endl;
}
getch();
}

Output:

Program that generates a table of any number

M.A Siddiqui

Hi, I am M.A Siddiqui. I'm a Computer Science Student, In this website, I'm teaching you Multiple languages and provides Projects and other Subjects Notes.

You may also like...

1 Response

  1. June 14, 2020

    […] Another Program: Write a program that generates a table of any number […]

Leave a Reply

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