Demo entry 6314782

asdsadasasas

   

Submitted by anonymous on Oct 27, 2016 at 17:58
Language: C. Code size: 390 Bytes.

#include <stdio.h>

int main()
{
	char bucle[] = {'b', 'u', 'c', 'l', 'e'};
	char bucle2[] = {0, 0, 0, 0, 0}; // Le puse 0s para que no imprima 'basura'.
	for(int i = 0; i < 5; i++)
	{
		if (i % 2 == 0)
		{
			bucle2[i] = bucle[i];
			printf("%s %d %c\n", bucle2, 5-i, 84-i);
		}
		else
		{
			bucle2[i] = bucle[i];
			printf("%s %d %c\n", bucle2, 5-i, 116-i);
		}
	}
}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).