a) Input of
of a number and check whether
it is divisible
by 5 or not.
Answers
Answered by
1
Answer:
To check divisibility with 5, check if(num % 5 == 0) then num is divisible by 5. To check divisibility with 11, check if(num % 11 == 0) then num is divisible by 11. ... To check divisibility with 5 and 11 both, check if((num % 5 == 0) && (num % 11 == 0)) , then number is divisible by both 5 and 11.
Answered by
0
Explanation:
i hope this answer helping you
Attachments:
Similar questions