Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <cstdlib>
  4. using namespace std;
  5.  
  6. void(double radius,double height,double cyl_vol*,double cyl_surf* );
  7. int main()
  8. {
  9. double r,h, cv, cs;
  10. do{
  11. cout << "input radius"; cin>> r;
  12. cout << "input height"; cin>> h;
  13. void(double r,double h,double cv*,double cs* )
  14. cout << "cylinder volume=" << cv << endl;
  15. cout << "cylinder surface=" << cs << endl;
  16.  
  17. }while(r!=0 || h!=0 )
  18. return 0;
  19. }
  20. void(double radius,double height,double cyl_vol*,double cyl_surf* )
  21. {
  22. cyl_vol=(radius*radius*M_PI*height);
  23. cyl_surf=2*radius*radius*M_PI+ 2*M_PI*radius*height;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement