Hello,

I am trying to make a multiplication table that goes up to 10 X 10 = 100. I am a newbie in C++ and this is probably a really stupid error.

This displays alot of 000's.Code:#include <iostream.h> int main() { int num = 1; int num1 = 1; int num2 = 2; int num3 = 3; int num4 = 4; int num5 = 5; int num6 = 6; int num7 = 7; int num8 = 8; int num9 = 9; int num10 = 10; do { num1 = num++; if ( num1 < 10) cout << "00" << num1 << " "; if ( ( num1 >= 10 ) & ( num1 < 100 ) ) cout << "0" << num1 << " "; } while ( num1 != 10 ); cout << endl; num = 1; do { num2 = num2 * num++; if ( num2 < 10) cout << "00" << num2 << " "; if ( ( num2 >= 10 ) && ( num2 < 100 ) ) cout << "0" << num2 << " "; } while ( num2 != 20 ); return 0; }

Can you please explain to me what i did wrong?

Thanks in advance to all those who help me.