Check this code where is wrong

**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

:wave: Welcome to the forums, @NIVASHSINGH1!

It seems that this post is asking for answers to a school assignment. It is against Replit Ask policy for community members to request or post complete answers to homework-like questions. On the other hand, the community can assist you in working through and understanding the core fundamentals of computer programming to help you figure out your question by yourself, though.

3 Likes