#include <stdio.h>
int main (void) {
float
wholeNumber,
fraction,
percent;
printf("\n\n What percent of: ");
scanf("f", &wholeNumber);
printf("\n is: ");
scanf("f", &fraction);
percent = (100 * fraction) / wholeNumber;
printf("%f",percent);
return 0;
}
Its been forever and a day since ive made a program so please forgive me :cursing:


Sign In
Create Account


Back to top









