Write an algorithm that will ask for a price. If the price is greater than 1000, compute a 10% discount from the original price and 5% discount for 1000 and below. Display the computed discount.
Start
Declare variable price
Declare variable discount
Read price
if price > 1000 then
discount =price * 0.1
else
discount =price * 0.05
end if
Display discount
Stop
Comments
Leave a comment