Friday, February 2, 2024

WRITE A QBASIC PROGRAM WHICH WILL RETURN THE UNIQUE DIGIT INTEGERS BETWEEN 100 AND 120.

 WRITE A QBASIC PROGRAM WHICH WILL RETURN THE UNIQUE DIGIT INTEGERS BETWEEN 100 AND 120

CLS

FOR I = 100 TO 120

    A = I MOD 10

    B = (I \ 10) MOD 10

    C = I \ 100

    IF A <> B AND A <> C AND B <> C THEN PRINT I,

NEXT I

END

 

1 comment:

  1. Awesome tutorial! It's fascinating to see how easily you can manipulate numbers in QBASIC. For those looking for reliable web hosting solutions, DV Hosting is a great option to consider for your projects!

    ReplyDelete