Skip to content

SunShine Softwares

Answers

Write a C Program Calculate discount as per following condition If Amount >= 10000 then 10% If Amount <10000 and> 5000 then 5% Else 2%

#include<stdio.h> void main() { float purchase,discount,bill; printf(“Enter Purchase Amount: Rs”); scanf(“%f”,&purchase); printf(“\n”); if(purchase>=10000) { discount = (purchase*10)/100; bill = purchase-discount; printf(“After applying the discount, you… Read More »Write a C Program Calculate discount as per following condition If Amount >= 10000 then 10% If Amount <10000 and> 5000 then 5% Else 2%