[ create a new paste ] login | about

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

Python, pasted on Mar 15:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
def a():
    p = int(input('p ='))
    q = int(input('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:
No errors or program output.


Create a new paste based on this one


Comments: