วันอาทิตย์ที่ 20 กันยายน พ.ศ. 2558

Lab4x_Power_of_ten

def setup() :
   power_number=int(input())
   calculate(power_number)
def calculate(power_number) :
     print("Value : 10 ^",power_number )
     if (power_number==6) :
        print("Million")
     elif (power_number==9)  :
        print("Billion")
     elif (power_number==12) :
        print("Trillion")
     elif (power_number==15) :
        print("Quadrillion")
     elif (power_number==18) :
        print("Quintillion")
     elif (power_number==21) :
        print("Sextillion")
     elif (power_number==30) :
        print("Nonillion")
     elif (power_number==100): 
        print("Googol")
     else: 
        print("The value input doesn't have the word")
setup()
   
 

ไม่มีความคิดเห็น:

แสดงความคิดเห็น