computer programming (Program Bug and Problems)

by lrcvs, Sunday, March 17, 2013, 17:39 (1708 days ago) @ Asy

CLS
J = 0
K = 0
T = 0
print "what is the price (RM)?"
input P
If P <= 100 Then T = P
IF P > 100 THEN J = 1
IF P <= 200 THEN K = 1
IF J = 1 AND K = 1 THEN T = P - (10*P) / 100
If P > 200 Then T = P - (P * 20) / 100
print "The price is = " + T
END


Complete thread:

 RSS Feed of thread

powered by my little forum