All pastes #763610 Raw Edit

automatenzeuchs

public c v1 · immutable
·published 2007-11-06 16:29 UTC
rendered paste body
void ausgabe(void) {	float preis = 0.2;	int geldstueck = 3;	float restgeld, centtemp,centtemp2,centtemp3;	int temp1,temp2,temp3,temp4,temp5,temp6,temp7,lol,temp8, wertzweiwerteins, wert_zweieuro, wert_eineuro, wert_fcent;	restgeld = geldstueck-preis;	temp1 = restgeld/2;	printf("Rueckgabe: %.2f ",restgeld);	printf(" %d x Zwei-Euromuenzen ",temp1);	temp2=restgeld -2*temp1;	temp3 = temp2/1;				printf("\n\t\t %d x Ein-Euromuenze ",temp3);	wert_zweieuro = temp1 *2;	wert_eineuro = temp3 *1;	wertzweiwerteins = wert_zweieuro+wert_eineuro;	restgeld = restgeld -wertzweiwerteins;		// Wieviel fehlt noch?		temp7 = wert_zweieuro+wert_eineuro;	//printf("Temp7 %d\n", temp7);	temp4 = ((restgeld*10)/5);			printf("\n%d Temp4\n",temp4);				printf("\n\t\t %d x 50-Cent Muenzen\n",temp4);		restgeld = restgeld-temp4*0.5;	printf("%f RESTGELD NACHDEM 50 CENT ABGEZOGEN\n\n",restgeld);					centtemp = restgeld*10;	lol = centtemp;		printf("\n\nLOL IST %d LOL\n\n",lol);	temp8 = lol/2;			printf("\n\t\t %d x 20-Cent Muenzen\n",temp8);	restgeld = restgeld - temp8*0.2;	printf("%f Rest",restgeld);				temp5 = restgeld*100;	//temp5 =  centtemp2/1;	printf("\nTEMP5 IST %d",temp5);	//printf("\n\nCENTTEMP2 %f",centtemp2);	//printf("\n\t\t %d x 10-Cent Muenzen\n",temp5);	}