Guest User

Untitled

a guest
May 24th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3. #include <stdio.h>
  4. #include <math.h>
  5. using namespace std;
  6.  
  7. struct Tor{
  8. double R, r;
  9. } Tor_info;
  10. int main()
  11. {
  12. cout<<"Enter R, please ";
  13. cin >>Tor_info.R;
  14. cout<<endl;
  15. cout<<"Enter r, please ";
  16. cin >>Tor_info.r;
  17. cout<<endl;
  18. double S=4*(M_PI)*(M_PI)*Tor_info.R*Tor_info.r;
  19. cout<<"S of Tor = "<< S << endl<<endl;
  20. double V=2*(M_PI)*(M_PI)*Tor_info.R*Tor_info.r*Tor_info.r;
  21. cout<<"V of Tor = "<< V << endl<< endl;
  22. system("pause");
  23. return 0;
  24. }
Add Comment
Please, Sign In to add comment