Calculate the Triple of a number if it is divisible by 3 others double the number
Calculate the Triple of a number if it is divisible by 3 others double the number
n=int(input())
if(n%3==0):
print(n*3)
else:
print(n*2)
Calculate the Triple of a number if it is divisible by 3 others double the number
n=int(input())
if(n%3==0):
print(n*3)
else:
print(n*2)
Comments
Post a Comment