Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "math.h"
- using namespace std;
- double func(double a, double b, double c) {
- double pervoe, vtoroe, qub, mod, mint, res1;
- double res;
- vtoroe = a * a;
- qub = b * b * b;
- if (vtoroe - qub == 0)
- pervoe = 0;
- else
- pervoe = sin(vtoroe - qub);
- mod = sqrt(fabs(a * c) + (b * b));
- mint = pervoe - mod;
- res1 = sin(mint);
- res = pow(res1, 1 / 3.);
- return res;
- }
- int main() {
- double A, B, C, result;
- while (true) {
- cout << "\t Введите ваше говнище по порядку,пж \n";
- cin >> A >> B >> C;
- result = func(A, B, C);
- cout << result << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement