HTBasic Help
×
Menu
Index
AND Example
 
DATA 0,0,0,1,1,0,1,1
RESTORE
CLEAR SCREEN
PRINT "AND test"
PRINT " J"," K","J AND K"
FOR L=1 TO 4
  READ J,K           !Reads in the DATA values into J and K.
  PRINT J,K,J AND K  !Performs the AND operation, then prints it out.
NEXT L
END