I am new to learning C and was wondering how I can print out the following results using nested if's and only using (1) printf:
1--------- 1
1----------2
1--------- 3
2--------- 1
2--------- 2
2--------- 3
3--------- 1
3 -------- 2
3 -------- 3
(I added ------- to represent spacing)
As you can tell I am VERY new to learning this so I think somebody should know the answer in 2 seconds!
You can post results here or to [email protected]
Thanks a ton!!!!!!