Computer Science, asked by aniket641393, 2 months ago

a. n=6
If N%2 = 0
Print "n, is divisible by 2"​

Answers

Answered by kamalrajatjoshi94
1

Answer:

Output:-

n is divisible by 2

Reason:-

6%2=0

More information:-

% returns the remainder of a number and remainder between 6 and 2 is 0 hence it prints n is divisible by 2. Else it will not print anything as else statement is not here so the statement is a if statement.

Similar questions