Saved Bookmarks
| 1. |
1. Write a program in java to find the price of a book after a discount. The market value of the book is 1000 and it is been sold at a discount of 12% .[Hint : s = 100 - 25, amount = (s*1000)/100;]. 2. Write a program in java to multiply two numbers with fractional values where the user will give inputs of two numbers. |
|
Answer» M = 120, S = 100 Output: 16.66% Input: M = 1000, S = 500 Output: ... CPP Program to FIND the Discount Percentage ... Setting the precision to 2 decimals. |
|