#include #include void triangle(void){ int h,x,y; printf("hauteur ? "); scanf("%d",&h); for(x=0;x<=h;x++){ for(y=0;y un compteur le h c'est hauteur le c c'est pour faire tourner une boule infini*/ int x,y,h,c; char choix; printf("t) Triangle\nc) Carré\nq) Quitter\nVotre choix : "); scanf("%c",&choix); for(c=0;c!=-1;c++){ if(choix == 't'){ triangle(); } if(choix=='c'){ carre(); } if(choix=='q'){ quitter(); return EXIT_SUCCESS; } printf("t) Triangle\nc) Carré\nq) Quitter\nVotre choix : "); scanf(" %c",&choix); } return EXIT_SUCCESS; }