1. Python / Говнокод #28398

    −4

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    a = float(input())
    b = float(input())
    
    operation = input()
    if operation == '+':
        print(a + b)
    elif operation == '-':
        print(a-b)
    elif operation == '*':
        print(a*b)
    elif operation == '/':
        print (a /b)
    elif operation == 'mod':
        print(a%b)
         if b == 0:
            print ("Деление на 0!")
    elif operation == 'div':
        print(a//b)
    elif operation == 'pow':
        print(a**b)

    Шикарный калькулятор

    Запостил: rootOtotot, 05 Октября 2022

    Комментарии (2) RSS

    Добавить комментарий