Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- #include <stdio.h>
- using namespace std;
- int main()
- {
- /* define your variables */
- double ID, velocity, kv, Re;
- cout << "Please define your pipe diameter in feet" << endl;
- cin >> ID;
- cout << "Please define your mean velocity flow in ft/sec^2" << endl;
- cin >> velocity;
- cout << "Please define your mean kinematic viscosity in ft^2/sec" << endl;
- cin >> kv;
- Re = (ID * velocity) / kv;
- cout << "Your Reynolds number is " << Re << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement