All pastes #762814 Raw Edit

Unbenannt

public text v1 · immutable
·published 2007-11-05 22:38 UTC
rendered paste body
    printf("Wieviel Euro haben sie eingeworfen?:\n");
    scanf("%f",&muenzen);
  
  if (muenzen>preis)
    {
        ergebnis=(muenzen-preis);
        printf("Es gibt %.2f Euro Wechselgeld\n",ergebnis);
    
    
        temp2=(ergebnis/2);
        if (temp2>0)    
        printf("Es sind %d 2 Euromuenzen auszugeben\n",temp2);
       
            temp1=(temp2/1);
            if (temp1>0)
            printf("Es sind %d 1 Euromuenzen auszugeben\n",temp1);
            
                temp05=(temp1/0.5);
                if (temp05>0)
                printf("Es sind %d 50 Cent Muenzen auszugeben\n",temp05);
                
                    temp02=(temp05/0.2);
                    if (temp02>0)
                    printf("Es sind %d 20 Cent Muenzen auszugeben\n",temp02);
                    
                        temp01=(temp02/0.1);
                        if (temp01>0)
                        printf("Es sind %d 10 Cent Muenzen auszugeben\n",temp01);
                        
                            temp005=(temp01/0.05);
                            if (temp005>0)
                            printf("Es sind %d 5 Cent Muenzen auszugeben\n",temp005);