Advertisement
Sigyrd

Untitled

Sep 21st, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. double p, s, w, y = 5, t = -7.4, n = 9, e = 10;
  6. p = 0.2;
  7. for (p = 0.2; p <= 8.5; p += 0.1)
  8. {
  9. if (p == 0.3)
  10. {
  11. w = 0.6*p + (pow(e, t*p))*(pow(4 * y / n, 2));
  12. cout << 'w = ' << w << '\n';
  13. };
  14.  
  15. if (p == 0.5)
  16. {
  17. w = 0.6*p + (pow(e, t*p))*(pow(4 * y / n, 2));
  18. cout << 'w = ' << w << '\n';
  19. };
  20.  
  21. if (p == 8.4)
  22. {
  23. w = 0.6*p + (pow(e, t*p))*(pow(4 * y / n, 2));
  24. cout << 'w = ' << w << '\n';
  25. };
  26. };
  27. system("pause");
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement