Latest web development tutorials

Python include esercizi 81

Python 100 Li Python 100 Li

Titolo: 809 * 800 * ?? = ?? doppia cifra + 9 + 1 * ?? ?? che ha rappresentato 8 * ?? risultato di due cifre, 9 * ?? Risultati 3 cifre. I rappresentanti ?? ricerca di due cifre, ed i risultati dopo 809 * ??.

Analisi del programma: Nessuno.

Source Code:

#!/usr/bin/python
# -*- coding: UTF-8 -*-

a = 809
for i in range(10,100):
    b = i * a + 1
    if b >= 1000 and b <= 10000 and 8 * i < 100 and 9 * i >= 100:
        print b,'/',i,' = 809 * ',i,' + ', b % i

L'output sopra esempio è:

9709 / 12  = 809 *  12  +  1

Python 100 Li Python 100 Li