modul:archiv:m319python:learningunits:lu02:loesungen:simplecalculator

Lösung LU02.A08

def main():
    # write your code below this line
    first = int(input('Give the first number:\n'))
    second = int(input('Give the second number:\n'))
    print(f'{first} + {second} = {first+second}') # using fstring
    print(f'{first} - {second} = {first-second}') # using fstring
    print(f'{first} * {second} = {first*second}') # using fstring
    print(f'{first} / {second} = {first/second}') # using fstring
 
 
if __name__ == '__main__':
    main()
  • modul/archiv/m319python/learningunits/lu02/loesungen/simplecalculator.txt
  • Zuletzt geändert: 2024/03/28 14:07
  • von 127.0.0.1