daily pastebin goal
18%
SHARE
TWEET

flp_benzin.c

Fotografiona Jul 23rd, 2012 260 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. main ()
  3. {      
  4.         float liter, kilometer;
  5.         printf("\n\t1 B e n z i n v e r b r a u c h\n");
  6.         printf("\nDieses Programm berechnet den durchschnittlichen\n");
  7.         printf("Verbrauch von Benzin in Litern pro 100km\n");
  8.         printf("\nBenzinverbrauch in Litern eingeben: ");
  9.         scanf("%f", &liter);
  10.         printf("\nGefahrene Kilometer angeben: ");
  11.         scanf("%f", &kilometer);
  12.         printf("\n\nDer Verbrauch liegt bei %.2f Litern pro Hundert Kilometer\n\n", liter*100/kilometer);
  13.         printf("\n\nVielleicht solltest du besser Fahrrad fahren.\n\n");
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top