Write a program in C++ to display the multiplication table of a given integer


#include <iostream>
using namespace std;
void main()
{
int table,time;
cout<<"input number"<<endl;
cin>>table;
for(time=1;time<=10;time++)
{
cout<<table  << "X"<<time<<"="<<table*time<<endl;
}
    system ("pause");
}

Write a program in C++ to display the multiplication table of a given integer Write a program in C++ to display the multiplication table of a given integer Reviewed by Unknown on May 18, 2017 Rating: 5

No comments:

Powered by Blogger.