SHARE
TWEET

Untitled

a guest Apr 25th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while True:
  2.     cislo1 = float(input('Zadaj 1. cislo dumbass:\n'))
  3.     operacia = input('Vyber operaciu (+ - * \)\n')
  4.     cislo2 = float(input('Zadaj 2. cislo dumbass:\n'))
  5.     if operacia == '+':
  6.         print('Vysledok = {}'.format(cislo1+cislo2))
  7.     elif operacia == '-':
  8.         print('Vysledok = {}'.format(cislo1-cislo2))
  9.     elif operacia == '*':
  10.         print('Vysledok = {}'.format(cislo1*cislo2))
  11.     elif operacia == '/':
  12.         print('Vysledok = {}'.format(cislo1/cislo2))
  13.     else:
  14.         print('Chujovo zadana operacia')
  15.     print('--------------------------------------------------')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top