Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdlib.h>
- #include <stdio.h>
- #include <math.h>
- using namespace std;
- struct Tor{
- double R, r;
- } Tor_info;
- int main()
- {
- cout<<"Enter R, please ";
- cin >>Tor_info.R;
- cout<<endl;
- cout<<"Enter r, please ";
- cin >>Tor_info.r;
- cout<<endl;
- double S=4*(M_PI)*(M_PI)*Tor_info.R*Tor_info.r;
- cout<<"S of Tor = "<< S << endl<<endl;
- double V=2*(M_PI)*(M_PI)*Tor_info.R*Tor_info.r*Tor_info.r;
- cout<<"V of Tor = "<< V << endl<< endl;
- system("pause");
- return 0;
- }
Add Comment
Please, Sign In to add comment