I am not getting exercise
#include
float calculatePrice(float price, int discount) {
float finalPrice = price - (price * discount / 100);
return finalPrice;
}
int main() {
float fp = calculatePrice(150.0, 10);
printf("The price is %.1f\n", fp);
return 0;
}
This is exercise
When I submit it says that 1st parameter of calculate price function shoul be price
I already write it.
Thank you for considering my problem.