Quick actions

cmd+k|ctrl+k

Navigation

Languages

Lab 2 (19)

Snippet info

Language

Cpp

Visibility

public

Author

buteskul5.6

Created

2018-09-26T09:38:57Z

Updated

2018-12-20T20:39:31Z

#include <iostream>
#include <cmath>
using namespace std;
int main()

{

	int x, y, H;	
	double exp;
	cout << "enter x,y";
	cin >> x
	>> y;
	if (18 * y - 1 != 0)
	{
		H = pow(exp,x) - (y*y + (12*x*y) - (3*(x*x))) / (18*y - 1);
		cout << endl << H;
	}
	else
	{
		cout << "no solutions";
	}

	return 0;
}
INFO