Advertisement
spacerose

practice(1-2)

Mar 8th, 2020
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4. int main()
  5. /*{
  6.     int x;
  7.     float a, b;
  8.     cin >> x;
  9.     a = sqrt((2 * x + sin(abs(3 * x))) / 3.56);
  10.     b = sin((3.2 + sqrt(1 + x)) / abs(5 * x));
  11.     a = round(a * 100.0) / 100.0;
  12.     b = round(b * 100.0) / 100.0;
  13.     if ((2 * x + sin(abs(3 * x)) < 0) & ((x == 0) || (x < -1)))
  14.         cout << "error error";
  15.     else {
  16.         if ((x == 0) || (x < -1))
  17.             cout << a << " " << "error";
  18.         else {
  19.             if ((2 * x + sin(abs(3 * x))) < 0)
  20.                 cout << "error " << b;
  21.             else
  22.                 cout << a << " " << b;
  23.         }
  24.     }
  25.     return 0;
  26. }
  27.  
  28. {
  29.     int x;
  30.     cin >> x;
  31.     if (x % 10 == 0)
  32.         cout << x / 10;
  33.     else
  34.         cout << x % 10 << x / 10;
  35. }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement