Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************
- Online C++ Compiler.
- Code, Compile, Run and Debug C++ program online.
- Write your code in this editor and press "Run" button to compile and execute it.
- *******************************************************************************/
- #include <iostream>
- #include <cmath>
- using namespace std;
- using ld = long double;
- int main()
- {
- ld ans;
- ld ro = 1.293;
- ld Na = 6.02 * pow(10, 23);
- ld mu = 29 * pow(10, -3);
- ld n = ro / mu * Na;
- //cout<<"n = "<<n<<'\n';
- ld T = 273;
- ld R = 8.31;
- ld phi = 0.5;
- ld Ph = 23000;
- ld P0 = pow(10, 5);
- ld A = (n * R * T);
- ld B = Na * (P0 - phi*Ph);
- ld C = P0 / (phi * Ph);
- ans = A/B*C;
- cout<<"ans = "<<ans<<'\n';
- }
Add Comment
Please, Sign In to add comment