Advertisement
Caneq

lb1.1.1

Oct 29th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. // lb1.1.1.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <cmath>
  6. #include <iostream>
  7. using namespace std;
  8.  
  9. int main()
  10. {
  11.     int s, t;
  12.     double y, x;
  13.     cout << "Enter x, t, s" << endl;
  14.     cin >> x >> t >> s;
  15.     setlocale(LC_ALL, "rus");
  16.     if (x <= 0) {
  17.         cout << "x не входит в область допустимых значений" << endl;
  18.     }
  19.     else {
  20.         y = (1 + pow(x, t)) / (log(pow(x, 3))*sqrt((pow(x, s) + 1)));
  21.         cout << y << endl;
  22.         return 0;
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement