V|P
23 Jun 2007, 9:15am
How can I get the following results using only for loops and if-statements?
Number 1:
123454321
1234 4321
123 321
12 21
1 1
Number 2:
ABCDEDCBA
ABCD DCBA
ABC BCA
AB BA
A A
I just got a book on C and am learning it so this may be simple.
Number 1:
123454321
1234 4321
123 321
12 21
1 1
Number 2:
ABCDEDCBA
ABCD DCBA
ABC BCA
AB BA
A A
I just got a book on C and am learning it so this may be simple.