Computer Science, asked by Knight16, 1 year ago

Write a QBASIC program to accept 10 numbers and display how many of them are multiples of 5.

Answers

Answered by PkTheLegend
4
CLS
FOR I = 1 TO 10
INPUT "ENTER THE NUMBER"; N
IF (N MOD 5) = 0
THEN
C=C+1
AND
PRINT N
ELSE NEXT I
IF (C <> 0)
THEN PRINT "AMONG THOSE NUMBERS THESE ARE THE MULTIPLE OF 5"
ENDIF
END

THERE YOU GO!!!.....
Answered by geetashreesinha8439
1

QBASIC PROGRAMMING:-

Your answer:-

CLS

FOR l = 1 TO 10

INPUT "ENTER THE NUMBER"; N

IF (N MOD 5) = 0

THEN

C = C+1

AND

PRINT N

ELSE NEXT I

IF (C * 0)

THEN PRINT "AMONG THOSE

NUMBERS THESE MULTIPLE

OF 5"

END

Hopes:

Hopefully it will help you.

Requests:

Please mark me as Brainlieste.

(If you want, you can).

Thank you

Similar questions