The problem is that divide two integers gives you the integer part of the result. So, (score/numberOfQuestions) will be always 0.
What you should do is
int percent = (score * 100 / numberOfQuestions);
Then the *100 will be executed first, then the divide will give you correct result.