11-08-2022, 03:28 PM
Code: (Select All)
'This would work in the sample program (Select Case):
'Available (purchase price) up to and including 6100.00 -> VW Polo
'Available (purchase price) up to and including 7100.00 -> (Case Else) Not on offer
CLS
INPUT "Purchase Price: "; purchase_price
SELECT CASE purchase_price
CASE IS <= 6100.00
PRINT "VW Polo."
CASE 6100.01 TO 7100.00
PRINT "6100.01 TO 7100.00"
CASE ELSE
PRINT "Not an offer"
END SELECT
SLEEP
RUN ' Try another price.
If eggs are brain food, Biden takes his scrambled.