Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Find a Node Sibling Test
intro coding hello world
14th Feb Programming Project v.01
co_1
Practice Problem 7
Max
BigInteger maxMinSum
fork
Lab 11v0.6
888 BONUS LAB 1
stackse - search stackoverflow differently
Please log in to post a comment.