60 347
Assignments Done
98%
Successfully Done
In April 2018

Answer to Question #25493 in C++ for shabana

Question #25493
assuming there are 7.481 gallons in a cubic foot, write a program that ask the user to enter a number of gallons and then display equivalent in cubic feet.
Expert's answer
#include <iostream>
using namespace std;

int main (){

cout <<"enter a number of gallons\n";
double x ; cin>>x;
cout << "equivalent in cubic feet:& " << x * 7.481 << endl;



system("pause");
return 0;
}

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