Got my loop set up so that if a doesn't equal 10, then it keeps adding to it until it does. Pretty neat stuff right there :3Code:#include <iostream>
using namespace std;
int main()
{
int a;
a = 0;
if ( a < 10 )
{
do
{
cout << a << " Adding one." << endl;
a++;
if ( a == 10 )
{
cout << a << " is the right number!" << endl;
return 0;
}
} while ( a < 10 );
}
}