Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- double p, s, w, y = 5, t = -7.4, n = 9, e = 10;
- p = 0.2;
- for (p = 0.2; p <= 8.5; p += 0.1)
- {
- if (p == 0.3)
- {
- w = 0.6*p + (pow(e, t*p))*(pow(4 * y / n, 2));
- cout << 'w = ' << w << '\n';
- };
- if (p == 0.5)
- {
- w = 0.6*p + (pow(e, t*p))*(pow(4 * y / n, 2));
- cout << 'w = ' << w << '\n';
- };
- if (p == 8.4)
- {
- w = 0.6*p + (pow(e, t*p))*(pow(4 * y / n, 2));
- cout << 'w = ' << w << '\n';
- };
- };
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement