Am having a problem in writing a program to control an 8051 MC based device, I wrote the following small code to test if its working :
10 INPUT "YOUR AGE (A<>0)=",A
20 IF A<>0 THEN GOTO 30
30 PRINT "WOW", CR
the result are in case 0:
YOUR AGE (A<>0)=0
WOW
the result are in case 1:
YOUR AGE (A<>0)=1
WOW
the relational expression (<>) is not recognized by the compiler, as if line 20 do not exist, may be am not noticing the error, although its a small code.
help me people.
10 INPUT "YOUR AGE (A<>0)=",A
20 IF A<>0 THEN GOTO 30
30 PRINT "WOW", CR
the result are in case 0:
YOUR AGE (A<>0)=0
WOW
the result are in case 1:
YOUR AGE (A<>0)=1
WOW
the relational expression (<>) is not recognized by the compiler, as if line 20 do not exist, may be am not noticing the error, although its a small code.
help me people.