welcome , I just have a Question my code to show multiplication table for just 1 number if the user wana put another number to show him also another table what I have to make or add something with this is cod
you can ask the user how many times he'd like to use the program. then use either while/for loop. i added a new variable "x", x is the number of times the user is gonna use the program. is this o.k?
#include<iostream>
usingnamespace std;
int main()
{
int i, x;
cout<<"How many times would you like to use the program?: ";
cin>>x;
for(int y = 0; y != x; y++){
cout<<"\nplese enter a number To Find multiplication table ";
cin>>i;
for(int j=1;j<=10;j++)
{
cout<<i<<" * "<<j<<" = "<<i*j<<endl;
}
}
return 0;
}