I have agonized over this, for the past hour, i am not sure where i am going wrong, i have yet to try the while and do while loops, perhaps that is where i am going wrong.

anyways, i am making a program that when you input a number it gives you the multiplication table(onl up to 12)for that number. well what i need is for it to ask for another number (after it has executed the first number) and repeat the process

and if the number is over 12 to output an error.

this is what i have(ps....i am a newbie to C++)

#include<iostream.h>

int main()

{

int k;

float number;

cout<<"\n Please enter a number you would like multiplied:";

cin>>number;

for(k=0;k<=12;++k)

{

cout<<k<<"*"<<number<<"="<<(k*number)<<"\t\t\n";

}

return 0;

}