วันอังคารที่ 15 กันยายน พ.ศ. 2558

Lab 4x - (Python) Mutiple Table

def setup():
    print (multi(7, 12))


def multi(n , row):
    i=0
    while (i <= row):
        result =  n * i
        print( n,"*",i,"=",result)
    i = i + 1

setup()

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

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