Answer to Question #301523 in C for Siva

Question #301523

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


1
Expert's answer
2022-02-23T06:24:13-0500


#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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS