LU04.L04: U = R * I

volt = input('U > ')
ohm = input('R > ')
ampere = input('I > ')
if volt == '?':
    volt = float(ohm) * float(ampere)
    print('Resultat U = ', volt, ' Volt')
elif ohm == '?':
    ohm = float(volt) / float(ampere)
    print('Resultat R = ', ohm, ' Ohm')
else:
    ampere = float(volt) / float(ohm)
    print('Resultat I = ', ampere, ' Ampere')
  • modul/archiv/m319python/learningunits/lu04/loesungen/uri.txt
  • Zuletzt geändert: 2024/03/28 14:07
  • von 127.0.0.1