réaliser le dessin d’une coupe d’un escalier plein qui descend
from kandinsky import * import time x = int(input("x (0) ?")) y = int(input("y (0) ?")) hMarche = int(input("Hauteur marche (10) ? ")) lMarche = int(input("Longueur marche (15) ? ")) # Espace grahique NumWorks : 320 x 240 (-20) nbMarcheEnHauteur = (220 - y) // hMarche nbMarcheEnLargeur = (320 - x) // lMarche nbMarche = min(nbMarcheEnHauteur,nbMarcheEnLargeur) for i in range(nbMarche): fill_rect(x,y+hMarche*i,lMarche*i,hMarche,color(64*(i%2),224*(i%2),208*(i%2))) time.sleep(0.001)