Code:#include<iostream> using namespace std; main() { int tab, res, i; char ch; do { cout<<"\n\n\tEnter any number : "; cin>>tab; cout<<"\n\tEnter how much do you want to create : "; cin>>i; cout<<endl; for(int a=1;a<=i;a++) { res=tab*a; cout<<"\t"<<a<<"\t"<<tab<<" * "<<a<<" = "<<res<<endl; } cout<<"\n\n\tNext (Y/N) : "; cin>>ch; } while(ch=='y'||ch=='Y'); cout<<endl; system("pause"); }
Bookmarks