Skip to main content

Code To Print Tables (only code)


This project is made to help a student who is weak in mathematics.
This program can tell the tables, right from one to thousand.


HOW TO RUN THIS CODE:-

Download any python running IDE to run this code.

HERE's THE CODE :-            

a = int(input("Enter any no. to print its table : \n==> "))

i = 1

while(i<=10) :

    if (a>1000) :

        print("I doesn't support the programme of no. greater than 1000.")

        break

    print(a , "X" , i , "=" ,  a*i)

    i+=1

nor = input("If You Want To Continue Then Press y Otherwise Press Any Thing To Leave.\n==> ")

def jiy() :

    a = int(input("Enter any no. to print its table : \n==> "))

    i = 1

    while(i<=10) :

        if (a>1000) :

            print("I doesn't support the programme of no. greater than 1000.")

            break

        print(a , "X" , i , "=" ,  a*i)

        i+=1

if(nor!="y") :

    print("Thanks For Using My Table Printer.")

while(nor=="y") :

    jiy()

    nor = input("If You Want To Continue Then Press y Otherwise Press Any Thing To Leave.\n==> ")

    if(nor!="y") :

        print("Thanks For Using My Table Printer.")

        break

    continue

Comments

Popular posts from this blog

Stone, Paper and Scissor - Game (only code)

Python Bill Generator (only code)

SPACE WAR - GAME