SyntaxFix
Write A Post
Hire A Developer
Questions
This should give you the result you want.
double total = 0; int number = 0; float percentage = number / total * 100 printf("%.2f",percentage);
Note that the first operand is a double