Editing 4231 - Mingx
Revision as of 11:24, 1 April 2023 by Pop Giulia (talk | contribs) (Pagină nouă: n = int(input("Introduceți un număr natural nenul: ")) x = int(input("Introduceți o cifră: ")) cifra_minima = float('inf') am_gasit_cifra = False while n > 0: cifra = n % 10 if cifra > x and cifra < cifra_minima: cifra_minima = cifra am_gasit_cifra = True n //= 10 if am_gasit_cifra: print("Cifra minimă strict mai mare decât", x, "este:", cifra_minima) else: print("-1"))
Warning: You are editing an out-of-date revision of this page.
If you publish it, any changes made since this revision will be lost.
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
Retrieved from "http://wiki.universitas.ro/wiki/4231_-_Mingx"