Quote:
It won't run.
This is probably the most useless problem report we get - and we get it a lot. It tells us nothing about what is happening, or when it happens.
So tell us what it is doing that you didn't expect, or not doing that you did.
Tell us what you did to get it to happen.
Tell us any error messages.
Start by making it more readable: pick an indentation style and fix your indentation to match that.
You'll start to spot compilation problems right away.
Such as : "where is the closing bracket for the
main
function?"
"What is this supposed to mean?":
if (n%i=0)
(n i)
i;
else
i);
And so on.
Fix your indentation, sort out your curly brackets, try to compile again.
Then start looking at the error messages you get - they include the line number the error is on, so look closely at that and the surrounding lines to see if you can spot anythgin obvious.