how to add int and float in c code example
Example 1: c declare float
float variable;
Example 2: int to float c
float percentage;
percentage = (float)number/total * 100;
float variable;
float percentage;
percentage = (float)number/total * 100;