write a program to input a number and print sum of digits which are divisible by 3
Answers
Answered by
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