Write an algorithm to find the special discount given to the customers
#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;
}
Comments
Leave a comment