Computer Science, asked by AnveshaSingh1426, 6 months ago

write a program to input a number and print sum of digits which are divisible by 3​

Answers

Answered by pjgaikar06
0

Answer:

In python,

x = int(input("Number > "))

if x % 3 == 0:

print("Your number is divisible by 3")

else:

print("It's not divisible by 3")

Similar questions