Friday, October 15, 2010

Printing stars - One puzzle a day - Puzzle Buddies

Puzzle:
The following C program prints infinite *s. You have to change (not add or remove) only 1 character to make it print exactly 20 *s.

int i, n = 20;
for (i=0; i < n; i--)

{
printf("*");
}

Note: Don't forget to visit us again. Answer to the puzzle will be posted on Monday.


No comments:

Post a Comment