See this program is used to enter 3 marks of 4 students and calculate their grade with their averages. Now the problem is as soon as it go to enter the 3rd mark of 3rd student console error pops out and the program crashes!! Try it out in your computer if my computer is the problem..
Got something against whitespace? The point for formatting your code is so you can verify what you've written. The stuff you've written is impossible to decipher, for the sake of a few space characters you can make it easy to read and verify.
The program did not crash for me. However, you probably want to move av = s/3; on line 15 outside of the j loop - you only need to calculate the average once after you've finished summing.