Question #301523

Write an algorithm to find the special discount given to the customers


Expert's answer



#include<stdio.h>
#include<math.h>




int main(){
	float amount;
	float discount;
	printf("Enter amount: ");
	scanf("%f",&amount);
	discount=0.05*amount;
	printf("Discount 5%: %.2f\n\n",discount);
	scanf("%f",&amount);
	return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS