Quick actions

cmd+k|ctrl+k

Navigation

Languages

Skalei

Snippet info

Language

Cpp

Visibility

public

Author

skalei.volodimir

Created

2018-10-09T19:54:34Z

Updated

2018-10-09T19:54:45Z

#include <iostream>
#include <math.h>

using namespace std;

int  main()
{
	int x;
	double result;

	cout << "Input your number" << endl;

	cin >> x;

	result = sqrt(x + 1) + sqrt(x - 1) / 2 * sqrt(x);

	cout << "Your result = " << result << endl;
}
INFO