67 248
Assignments Done
99,3%
Successfully Done
In November 2018

Answer to Question #3726 in C++ for himanshu verma

Question #3726
Assuming that there are 7.481 gallons in a cubic foot, write a program thatthat asks the user to enter the number of gallons, and then display the equivalent in cubic feet.
Expert's answer
[table]#include <iostream>using namespace std;

int main() {
float gallons;
cout<<"enter the number of gallons"<<endl;
cin>>gallons;
cout <<"cubic feet : " <<gallons/7.481 << endl; // prints
return 0;
}[/table]

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions