I am trying to solve:
int total=0, number=0; float percentage=0.0; percentage=(number/total)*100; printf(\"%.2f\", percentage);
If the val
Change your code to:
int total=0, number=0; float percentage=0.0f; percentage=((float)number/total)*100f; printf("%.2f", (double)percentage);