-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2_math4.cpp
32 lines (30 loc) · 966 Bytes
/
2_math4.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* calculating the Reynolds number
written by Tariq Ridwan: 👉 https://tariqridwan.github.io/
Universitat Politècnica de Catalunya, Barcelona */
#include<iostream>
#include<string>
// #include<cmath>
using namespace std;
int main()
{
double U, rho, mu, D;
float c;
string write_something,again_write,man_write_again;
write_something = "Calculating Reynolds number\n";
again_write = "by the way do you know why loko is always angry¿¿\n";
man_write_again = "Yes coz he is a loko\n";
cout << write_something;
cout << again_write;
cout << man_write_again;
cout << "What is density in (kg/m3)?\n";
cin >> rho;
cout << "What is the velocity in (m/s)" << endl;
cin >> U;
cout << "What is the dynamic viscosity" << endl;
cin >> mu;
cout << "What is the characteristic length? (m)" << endl;
cin >> D;
cout << "So the Reynolds number is:" << endl;
cout << (rho*U*D)/mu << endl;
return 0;
}