Bibi loves to go shopping. One day, one of her favorite stores is offering a discount. Bibi...

60.1K

Verified Solution

Question

Programming

Bibi loves to goshopping. One day, one of her favorite stores is offering adiscount. Bibi becomes very interested and decided to shop there.If Bibi’s current total is N Rupiah before X%discount and Y % tax, how much should Bibi pay to thecashier?

Format Input :

A single line with three integers N , X andY .

Format Output :

A single line of the amount of money Bibi has to pay in twodecimal places.

  Constraints :

  • 103≤ N ≤109
  • 1 ≤ X, Y ≤ 100

  Sample Input 1 :

10000 10 10

Sample Output 1 :

9900.00

Sample Input 2 :

90000 5 15

Sample Output 2 :

98325.00

  Sample Input 3 :

43250 7 10

  Sample Output 3 :

44244.75

  Explanation :

  On the first sample, the price ofthe item after a 10% discount is 9000.00. After discounting theprice, we apply a 10% tax on top of it so Bibi owes the cashier9900.00.

NOTES :

IN C LANGUAGE

  

Answer & Explanation Solved by verified expert
3.6 Ratings (464 Votes)
I have uploaded the Images of the code Typed code and Output ofthe Code I have provided explanation using    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students