Computer Science, asked by trishabhar, 7 months ago

write a program to assign value of 100 to variable price and value 5 to variable quantity calculate total bill and print it. if discount applicable is 10% calculate discount value and display discount and net bill draw output screen also

Answers

Answered by anurag83168316
1

Answer:

which type of program you want....please tell properly....

Explanation:

please mark me the brainliest..

Answered by preetkaur9066
0

Answer:

Program to find the Discount Percentage

Given Marked Price

M and Selling price as

S of a product. The task is to calculate the Discount Percentage applied to that product.

Examples:

Input: M = 120, S = 100

Output: 16.66%

Input: M = 1000, S = 500

Output: 50%

Recommended: Please try your approach on {IDE} first, before moving on to the solution.

The mathematical formula to calculate the Discount Percentage for the product is:

Discount = Marked Price - Selling price

Therefore,

Discount Percentage = (Discount / Marked Price) * 100

Below is the program to find the discount percentage for a product:

Hope it helps you

Mark me brainlist

Similar questions