write the output of the following
n= 5
WHILE ( N < 15)
IF n MOD 5 = 0 THEN
PRINT n ; " is divisible by 5 "
ELSE
PRINT n ; " is not divisible by 5 "
END IF
n = n +1
WEND
Answers
Answered by
0
Answer:
The modulus operator works on integers (and integer expressions) and yields the remainder when the first ... n % 2 == 0 or n % 3 == 0 is true if either of the conditions is true, that is, if the number is divisible by 2 or 3.
Similar questions
History,
2 months ago
English,
2 months ago
Science,
2 months ago
Computer Science,
5 months ago
Math,
5 months ago
Political Science,
11 months ago
Accountancy,
11 months ago