C++ Program to Print Multiplication table of Any Number

 #include<iostream>

using namespace std;

int main()

{

int i,n;

cout<<"================================================\n";

cout<<"Enter the numebr whose table you want to print:";

cin>>n;

cout<<"================================================\n";

i=1;

while(i<=10)

{

cout<<n<<" * "<<i<<" = ";cout<<n*i<<"\n";

i++;

}

return 0;

}

Comments

Popular posts from this blog

Binary Search, Linear Search, Selection Sort and Bubble sort Python Menu Program

Housie/Tambola using Python with Tickets in PDF file

100% Working C++ Tambola/Housie Code with 90 Unique Numbers