Computer Science, asked by br207aj, 1 day ago

Raman wants to check a number N is divisible by 3 or not, write the condition to do so.​

Answers

Answered by eroor712739871
0

Answer:

Explanation:

https://brainly.in/question/49961597?answeringSource=feedPublic%2FhomePage%2F20https://brainly.in/question/49961597?answeringSource=feedPublic%2FhomePage%2F20

Answered by mittal001
0

Answer:

In python:

N=input()

if N%3 == 0:

print("Divisible By 3")

Explanation:

In this modulo (%) is used. Basically is gives remainder of the number when divided by 3. So if N=25 and we did this operation 25%3, as 3*8=24 so remainder is 1, hence, this will return 1 and as 1 is not equal to 0 it is not divisible by 3. Whereas if the number is divisible by 3 the remainder would have been 0.

Similar questions
Math, 8 months ago