Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
part2final
//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
json formatter
Access the structure variable
B_141212_OrdenarArray
Bitwise Xor Swaping Two Variables
ptr_to_ptr
ChangeStructVal
Hello world
150109_RecursividadParImpar
Dangling
Goodone pointer minus void pointer