Quick actions

cmd+k|ctrl+k

Navigation

Languages

Алексей Парастюк №19

Snippet info

Language

Cpp

Visibility

public

Author

diety

Created

2018-09-30T15:30:38Z

Updated

2018-09-30T15:42:08Z

#include <iostream>
#include <cmath>

using std::cout;
using std::endl;
using std::cin;


int main()
{   
    int z;
    int x;
    int y;
    
    cout << "z = exp(x) - (pow(y,2) + 12xy - 3*pow(x,2)) / 18y - 1" << endl;
    cout << "Enter x,y:\n " << endl;
    
    cin >> x;
    cin >> y;
    
    if ( 18*y - 1 == 0)
    {
        cout << " Нет решений " << endl;
    }
    else
    {
    z = exp(x) - (pow(y,2) + 12*x*y - 3*pow(x,2)) / 18*y - 1;
    }
    cout << z << endl;
    
    return 0;
}
INFO