Archive for August, 2013

[Programmation] [C language] Program draw a star 5 branchs

/* Program to display a star */ #include <stdio.h> int x,y,dim; main() { /* Entrer les dimensions de l’etoile */ printf( “Enter dimension of picture (i.e. 10): ” ); scanf( “%d”, &dim ); for ( x = 0; x <= dim; x++, printf( “\n” ) ) for ( y = 0; y <= 2*dim; y++ […]

Leave a comment

[Programmation] [C language] Program draw a fir tree

/* Program to display a fir tree-sapin */ #include <stdio.h> int x,y,dim; main() { printf( “Enter dimension of picture (i.e. 10): ” ); scanf( “%d”, &dim ); /* Dessiner le corp du sapin */ for ( x = 0; x <= dim; x++, printf( “\n” ) ) for ( y = 0; y <= 2*dim; […]

Leave a comment