Advertisement
Hoffizyk

wpis

Jan 22nd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. liczba = int(input('Podaj liczbe z zakresu <10, 99>: '))
  2. for licznik in range(1,5):
  3.     nowa_liczba = int(input ('liczba {}: '.format(licznik+1)))
  4.     while liczba %10 != (nowa_liczba//10)%10:
  5.         print('Nowa cyfra dziesiatek musi byc taka, jak stara dziesiatek...')
  6.         nowa_liczba = int(input ('liczba {}: '.format(licznik+1)))
  7.     liczba = nowa_liczba
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement