assign a float value in c code example
Example 1: int to float c
float percentage;
percentage = (float)number/total * 100;
Example 2: what is float in c
float variable;
float percentage;
percentage = (float)number/total * 100;
float variable;