Computer Science, asked by ayushkumar1899s, 8 months ago

WAP to check number is divisible by 5

Answers

Answered by medeepthi4779
4

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. Now combine the above two conditions using logical AND operator 

Explanation:

I THINK it was helpful

please mark it brainllist

Answered by gaganadithyareddy9
1

Answer:

Hey! Here is your code in python...

x = int(input("Enter a number: "))

if x%5 == 0:

   print(x, "is divisible by 5")

else:

   print(x, "is not divisible by 5")

# HOPE THIS HELPS!!

Similar questions