SyntaxFix
Write A Post
Hire A Developer
Questions
Well to make the decimal into a percent you can do this,
float percentage = (correct * 100.0f) / questionNum;