I was answering some sample questions and came across this problem. Its based on simple 'for' loop.
I have to change only one character to make this program work. The solution says there are 3 ways to solve this problem.Code:int i, n = 20; for(i = 0;i < n;i--) printf(“-“);
I have tried to work around this. But I need to atleast to change 2 characters.