i m a lil new at this.....so forgive any mistakes
here's the riddle :
the following appears in a c program:
main()
{
n=20;
for(i=0;i<n;i--)
printf("-\n");
}
now the challenge is to get this code to display 20 dashes i.e 20 ( "-" ) one after the other each on a separate line by doing either one of the following
a.appending a SINGLE character from the code.
b.deleting a SINGLE character from the code.
c.replacing a SINGLE character from the code.
note the emphasis on the word single.....lol.......the point is tht only one character may be altered ar added( u get the idea).....and the result upon execution must be 20 dashesone after the other each on a separate line........(as is obvious by the \n in the printf statement)
note tht this is for novice programmers only.........u uberhackers can stay out of it!!
n if some superprogrammer does give it a try......hebetter come up with a solution in less than 10 sec....lol.
o yea and by the way........there's more than one solution to this ........so lets see how many u guys can come up with

