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