Well, this is a simple for loop (of course, which doesn't do anything specific!). Let's see if we can make it different.
int i, n = 20 ;
for ( i = 0 ; i < n; i -- )
printf ( "-" ) ;
The problem is to make this for loop print the "-" exactly 20 times by either replacing, or adding or removing only a single character from the code. There are three solutions to the above problem.
By the way, Kocil, Akshay, haven't seen you guys around since a long while (matter of factly, I haven't been around much myself in the last few days. Am posting more on the Java forum now.) This is just an attempt to say Hi to all of you after a long time....
Anyways, everyone's welcome to answer. Let's see who gets all three correct solutions first!