aychdogg, on 05 October 2012 - 03:50 PM, said:
#include <stdio.h>
main () {
int i, j;
for (i = 1;i <= 5;i++) {
printf("*");
}
getch();
}
...I could use nested for loop for this or a number of other solutions but the restriction of using only one for loop has put me into trouble...
My understanding is that the point of the project is to replace loop with logic. If he's already using printf, why couldn't he just use another?
Sounds to me like he needs to properly understand the project himself, before posting it here.
& my solution only adds 3 lines of code. So it's impossible to show it without showing it.

New Topic/Question
Reply




MultiQuote




|