Ad Code

NEW POST

6/recent/ticker-posts

Nedumaran Rajangam is an visionary in Aviation industry. His wife Bommi runs a bakery where she sells loaves of bread for 185 rupees each.

...

 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;}

Post a Comment

0 Comments