Nedumaran Rajangam is an visionary in Aviation industry. His wife Bommi runs a bakery where she sells loaves of bread for 185 rupees each.
#include <stdio.h> int main() {int price,loaves,regularprice; float discountrate,discount,finalprice; scanf("%d",&loaves); regularprice=185; price=loaves*regularprice; discountrate=0.6; discount=price*discountrate; finalprice=price-discount; printf("Regular Price=%d",price); printf("\nAmount Discounted=%0.2f",discount); printf("\nAmount to be paid=%0.2f",finalprice); return 0;}
0 Comments
if you have any doubt, plz let me know