~cpp 

if __name__ == '__main__':

    print '==2단==   ==3단==   ==4단==   ==5단=='
    for j in range(1,10):
        for i in range(2,6):
            print i,'*',j,'=',i*j,
        print ''

    print '==6단==   ==7단==   ==8단==   ==9단=='
    for j in range(1,10):
        for i in range(6,10):
            print i,'*',j,'=',i*j,
        print ''




Retrieved from http://wiki.zeropage.org/wiki.php/구구단/김태훈-zyint
last modified 2021-02-07 05:28:44