Posts

Showing posts with the label 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

  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)