Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include <math.h>
- void main()
- {
- using namespace std;
- setlocale(LC_ALL, "Russian");
- double f, q, r, l;
- cout << "Введите два числа\n";
- cin >> f >> q;
- l = abs(f * q);
- if (l > 10) { r = log(abs(f) + abs(q)); }
- else if (l < 10) { r = exp(f + q); }
- else if (l == 10) { r = (f + q); };
- cout << "Результат:" << r;
- _getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement