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
holiwis
bitwise operations
HW2A
C_141210_Funciones
18BCE2182 ASSESS_1 Q1-3
Switch
Undefined behavior
Command Expressions in Gnu C
recurs3
Lab 10 v1