51.5k views
4 votes
5. Write Qbasic program for the following program:

a. Input a number and check whether the number is divisible by 3 or not.
Please help!
Due is in 9 min​

User Urho
by
4.7k points

1 Answer

3 votes

10 INPUT NUMBER

20 IF NUMBER/3 = INT(NUMBER/3) PRINT “DIVISIBLE BY 3”:GOTO 40

30 PRINT “NOT DIVISIBLE BY 3”

40 END

User Erik Vesteraas
by
4.7k points