Enter Rate : 500
Enter Quantity : 200
Amount = 100000.0
Discount = 20% and Discount Amount = 20000.00
Net Amount = 80000.0
In the above code, we have taken inputs from users for values of rate and quantity of the product. And the calculate amount by multiplying both using which we have calculated the discount percentage using which the values of discount amount and net payable amount is calculated.
Code:
Output:
In the above code, we have taken inputs from users for values of rate and quantity of the product. And the calculate amount by multiplying both using which we have calculated the discount percentage using which the values of discount amount and net payable amount is calculated.
need an explanation for this answer? contact us directly to get an explanation for this answer