Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
PART 2
//gcc 5.4.0 #include <stdio.h> #include <math.h> int main() { float miles; float gallons; float total; float days; char str[100]; scanf("%s", &str); scanf("%f", &days); scanf("%f", &miles); scanf("%f", &gallons); miles = miles* 0.50; gallons= gallons*1.50; total= 30 + miles + gallons; printf("\n Customer name: %s", str); printf("\n Number of days: %f" , days); printf("\n Number of miles: %f", miles); printf("\n Number of gallons: %f", gallons); printf("\n The total rental cost is: %f" , total); return 0; }
run
|
edit
|
history
|
help
0
pointer_swap
cstructCricket
3468
is_there_segfault
Prime no
assignment 3 celina
main.c
child process
Maze
Random test