num= (input ('inserisci un numero intero: '))
for n in range (5, 10):
    if num>= 5 and num<10:
        print (n**2)
        n+=1
        print(n**2)
        n+=2
        print(n**2)
        n+=3
        ptint(n**2)
    print('la somma totaledei quadrati è ', n**2+n**2+n**2+n**2)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: