All pastes #42551 Raw Edit

Something

public c v1 · immutable
#42551 ·published 2006-02-21 04:03 UTC
rendered paste body
/* *  test.c *   * *  Created by Anthony Leto on 2/20/06. *  Copyright 2006 __MyCompanyName__. All rights reserved. * */#include <stdio.h>int main(){	int lines;	int linecounter;	char spacechar;	int spacecounter;	int spaceend;	char astchar;	int astcounter;	int astend;	spacechar = ' ';	astchar = '*';	lines = 5;	for(linecounter=1; linecounter<=lines; linecounter++)	{		switch(linecounter)		{				case 1:					spaceend = 4;					astend = 1;				case 2:					spaceend = 3;					astend = 3;				case 3:					spaceend = 2;					astend = 5;				case 4:					spaceend = 1;					astend = 7;				case 5:					spaceend = 0;					astend = 9;				default:					printf("Error");		}		for(spacecounter = 1; spacecounter <= spaceend;  spacecounter++)		{			printf(" ");		}		for(astcounter = 1; astcounter <= astend; astcounter++)		{			printf("*", astchar);		}		printf("\n");	}	return;}