Advertisement
Guest User

Untitled

a guest
Sep 14th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. #include <stdio.h>
  4.  
  5.  
  6.  
  7. using namespace std;
  8.  
  9.  
  10.  
  11. int main()
  12. {
  13. /* define your variables */
  14. double ID, velocity, kv, Re;
  15.  
  16. cout << "Please define your pipe diameter in feet" << endl;
  17. cin >> ID;
  18.  
  19. cout << "Please define your mean velocity flow in ft/sec^2" << endl;
  20. cin >> velocity;
  21.  
  22. cout << "Please define your mean kinematic viscosity in ft^2/sec" << endl;
  23. cin >> kv;
  24.  
  25. Re = (ID * velocity) / kv;
  26.  
  27. cout << "Your Reynolds number is " << Re << endl;
  28.  
  29.  
  30. return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement