# main.py
import pypackage.mymath as math
import pypackage.bank2 as bk
print ('\n call module math')
print ('PI=', math.pi)
a=24
b=3
c= 5
print ('%d 和 %d 的 GCD = %d' % (a, b, math.gcd (24,3)))
print ('%d 階層! = %d' %(c, math.factorial(4)))
print ('\n call module bank2')
acct = bk.Account('Tommy', '999-889', 900)
print ('原帳戶為:', acct, '\n')
x= 600
print ('存款 %d 元' %x)
acct.deposit(x)
print ('Call Bank 存款 後 帳戶為:', acct, '\n')
y= 300
print ('提款 %d 元' %y)
acct.withdraw(y)
print ('Call Bank 提款 後 帳戶為:', acct, '\n')
print ('目前帳戶為:', acct)