Thank you for letting us know, we have fixed few parts of the exercise. Your code is correct. Please try this code:
#include <stdio.h>
float calculatePrice(float price, int discount) {
float finalPrice = price - (price * discount / 100);
return finalPrice;
}
int main() {
float fp = calculatePrice(150, 10);
printf("The price is %.1f", fp);
return 0;
}