I need to write a program hat prints the following multiplication table using while loops; and no if statements:
1 2 3 4 5 6 7 8 9
1 1
2 2 4
3 3 6 9
4 4 8 12 16
5 5 10 15 20 25
6 6 12 18 24 30 36
7 7 14 21 28 35 42 49
8 8 16 24 32 40 48 54 62
9 9 18 27 36 45 54 63 72 81
I'm stumped! My while loops produce garble; as they only carry out the first two numbers.....please please enlighten me!
1 2 3 4 5 6 7 8 9
1 1
2 2 4
3 3 6 9
4 4 8 12 16
5 5 10 15 20 25
6 6 12 18 24 30 36
7 7 14 21 28 35 42 49
8 8 16 24 32 40 48 54 62
9 9 18 27 36 45 54 63 72 81
I'm stumped! My while loops produce garble; as they only carry out the first two numbers.....please please enlighten me!



*bows head in the presence of computer gurus*
i'm gonna help you out here and fix your code. i don't know what the hell you were thinking with that test thing.
Comment