4231 - Mingx: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

20 May 2023

30 April 2023

1 April 2023

  • curprev 12:4812:48, 1 April 2023Pop Giulia talk contribs 673 bytes +260 No edit summary undo
  • curprev 11:2411:24, 1 April 2023Pop Giulia talk contribs 413 bytes +413 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")