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
8.3k 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
8.7k points

Related questions

asked Feb 22, 2024 220k views
Dw asked Feb 22, 2024
by Dw
8.0k points
2 answers
0 votes
220k views
1 answer
0 votes
65.1k views