[ create a new paste ] login | about

Link: http://codepad.org/uLpmHTDp    [ raw code | output | fork ]

Python, pasted on Mar 15:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
p = int(input("p ="))
q = int(input('q ='))
def a(p,q):
   
    t = p*q
    q10 = t - ((t*5)/100)
    q50 = t - ((t*7) / 100)
    
    if q < 10:
        print('totlal= ',t)
    elif q < 50:
        print('total= ',q10)
    elif q >= 50:
        print('total= ',q50)
a()


Output:
1
2
3
4
p =Traceback (most recent call last):
  Line 1, in <module>
    p = int(input("p ="))
EOFError


Create a new paste based on this one


Comments: