c program discount calculater
#include<stdio.h>
int main(){
int amount;
printf("enter the amount=\n");
scanf("%d", &amount);
int discount;
printf("enter the discount percentage="); scanf("%d",&discount);
int savings = amount*discount/100;
printf("your savings=%d\n",savings);
printf("now you have to pay =rs %d",amount-savings);
}
Hello
ReplyDelete