ok guys this is my code it dosent appear to to what i want it to.
it just throws 3's everywhere lol is this a valid way to use a while loop?i mean it wont do the ++ thing with b??thank you in advanceCode:#include <iostream>
using namespace std;
int main ()
{
int a;
int b;
int c;
int d;
b=1;
c=a*b+b;
d=20;
cout<<"please enter to number\n";
cin>>a;
cin.ignore();
while (c<d){
b++;
cout<<c;
}
cout<<c;
cin.get();
}