Monday, 21 February 2022

Write a python program to print table where table number inputed by user

 CODE

# tablen.py 


def main() :    

    n = int (input ("Please enter number: ") ) 

    for i in range(1,11) : 

        sum=n*i

        print (n,"*",i,"=",sum) 

main()


Note :save above file as : tablen.py

SCREENSHOT




No comments:

Post a Comment