NickG

Untitled

Sep 15th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.59 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdint.h>
  3.  
  4. //Fuck ya, main function
  5. int main(int argc, char **argv) {
  6.     int32_t start, end; //stdints mothafucka
  7.     float gas; //Awww shit, declaring a float
  8.     printf("How much gas was used: "); //No puts here nignog
  9.     scanf("%f", &gas); //EVERYONE GET DOWN USER INPUT INCOMING
  10.     printf("Odometer at start: "); //Oh hey more printf
  11.     scanf("%d", &start); //NOT THIS SHIT AGAIN
  12.     printf("Odometer at end: "); //I'm on to you
  13.     scanf("%d", &end); //I FUCKING KNEW IT
  14.     printf("%fl/km\n", (gas/(end-start))); //Here's your shit, get out
  15.     return 0; //I'm done with this shit
  16. }
Advertisement
Add Comment
Please, Sign In to add comment