Signup/Sign In

Answers

All questions must be answered. Here are the Answers given by this user in the Forum.

Thank you very much sir it's working.
one year ago
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.
one year ago