- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmultiply_table.py
More file actions
Latest commit
26 lines (22 loc) · 540 Bytes
/
Copy pathmultiply_table.py
File metadata and controls
26 lines (22 loc) · 540 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- coding: utf-8 -*-
"""
Programa desarrollado por el Licenciado César Cordero Rodríguez.
Bajo licencia GPLv3.
Puede ser modificado, copiado y distribuido.
Se desarrolló con fines educativos.
"""
X=int(input("Enter value: "))
print("")
print("For X="+str(X))
print("And Y from 0 to 9")
#Another formula to multiply
#print("Formula:")
#print("X*Y=10*Y-((10-X)*Y)")
print("")
Y=0
while(Y<10):
#Another formula to multiply
#R=10*Y-((10-X)*Y)
R=X*Y
print(str(X) +"*"+str(Y) +"="+str(R))
Y+=1