Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main() {
- double a, b, c;
- cin >> a >> b >> c;
- double m;
- if (a > min(cos(b), c)) {
- m = max(a, b);
- } else if (a < min(cos(b), c)) {
- m = 0.0;
- } else {
- m = 1.0;
- }
- cout << "m = " << m << endl;
- double sa = sqrt(abs(a));
- cout << "sqrt(abs(a)) = " << sa << endl;
- double t = m - sa;
- cout << "t = " << t << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement