Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- float a = -0.6, b = 5.3,z,t,c;
- if (a < b) z = sqrt(abs(pow(a,2) - pow(b,2)));
- else z= 1 - 2 * cos(a)*sin(b);
- c = log10(z);
- if (z < b) t = (pow(z + pow(a, 2),(1 / 3)));
- else if (z = b) t=(1 - c + cos(pow(a, 2) * b));
- else t=(1 / (cos(z*a)));
- cout << a << endl << b << endl << z << endl << t;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement