0
Can anyone explain the defect in the given program.thanks in advance.
code is written in c. https://code.sololearn.com/cx7jKDrNZxzv/?ref=app
1 Answer
+ 9
Fixed code: https://code.sololearn.com/cba3E7zPzEyy/#c
Problems:
1. There were some invisible characters (this happens when the code is pasted from another source)
2. Use if(flag==0) instead of if(flag=0)
3. There were mismatched curly braces
4. i, j should be declared before starting the loops