**Question:**Write a program in qbasic to input price of a item. If price is more then 500 then discount is 10% of total price other wise no any discount . Find discount and final price
Repl link:
code snippet
CLS
INPUT "Enter the price of the item: ", price
IF price > 500 THEN
discount = price * 10 / 100
final price = price - discount
ELSE
discount = 0
final price = price
ENDIF
PRINT "The discount is: ", discount
PRINT "The final price is: ", final price