Computer Science, asked by mitalidgpdas, 8 months ago

Write the program in QBASIC to accept a number and check whether the number is divisible by 2 but not by 5​

Answers

Answered by Dapnne
20

Answer:

REM

             CLS

             INPUT"ENTER ANY NUMBER";N

             IF N MOD 5=0 THEN PRINT"THE GIVEN NUMBER IS DIVISIBLE BY 5"ELSE

             PRINT"THE GIVEN NUMBER IS DIVISIBLE BY 5"

             END

Similar questions