Public feed #724572

triangle 123

public c v1 · immutable
Raw Edit
·published 2007-10-03 18:08 UTC
rendered paste body
#include <stdio.h>int main(){	unsigned int a, b, c, d=1;	printf("Construction d'un triangle d'une suite de chiffre.\n");	printf("Entrez la hauteur du triangle: ");	scanf("%u",&a);		for (b=0; b<=a; b++)	{		for (c=0; c<=b; c++)		{			printf("%u",d);			d++;			if (d==4)			{				d=1;			}		}		printf("\n");		d=1;	}		return (0);}