Advertisement
fabis_sparks

vc

Sep 21st, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. double r, h;
  6. cout << "radius? ";
  7. cin >> r;
  8. cout << "\nheight? ";
  9. cin >> h;
  10. double vc = 3.14 * r * r * h;
  11. cout << "vc = " << vc << endl;
  12. system("pause");
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement