All pastes #566144 Raw Edit

Someone

public text v1 · immutable
·published 2007-06-14 10:29 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <time.h>
 int main()
	{
	char c=0;
	int x, y;
	int increment;
	srand( (unsigned)time( NULL ) ); //initialise le générateur de nombres aléatoires
	textcolor(10); //Couleur verte
	while (c < 500) //boucle infinie
		{
		c = (rand() % 250) + 11;
		x = rand() % 80;
		y = rand() % 25;
		if (c == 14)
			{
			for (increment=0; increment <= 24; increment++)
				{
				gotoxy(x, increment);
				printf("%c", 219);
				if (increment >= 20 & increment <= 15){ gotoxy(x, increment - 5); printf("%c", 176); }
				if (increment >= 15 & increment <= 10){ gotoxy(x, increment - 5); printf("%c", 177); }
				if (increment >= 10 & increment <= 3) { gotoxy(x, increment - 7); printf("%c", 178); }
				sleep(2);
				}
			}
		gotoxy(x, y);
		printf("%c", c);
		}
}