Friday, 12 January 2018

Python Program to Compute Simple Interest Given all the Required Values :

Program/Source Code :


n=int(input("Enter the number to print the tables for:"))
for i in range(1,11):
    print(n,"x",i,"=",n*i)

Output :

Enter the no :7
7 X 1 = 7
7 X 2 = 14
7 X 3 = 21
7 X 4 = 28
7 X 5 = 35
7 X 6 = 42
7 X 7 = 49
7 X 8 = 56
7 X 9 = 63
7 X 10 = 70



No comments:

Post a Comment