Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- liczba = int(input('Podaj liczbe z zakresu <10, 99>: '))
- for licznik in range(1,5):
- nowa_liczba = int(input ('liczba {}: '.format(licznik+1)))
- while liczba %10 != (nowa_liczba//10)%10:
- print('Nowa cyfra dziesiatek musi byc taka, jak stara dziesiatek...')
- nowa_liczba = int(input ('liczba {}: '.format(licznik+1)))
- liczba = nowa_liczba
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement