Mam nadzieje, że miało to być w c++.
C++:
#include <math.h> //<--pierwiastek sqrt( n );
#include <iostream>
using namespace std;
int main() {
float a, b;
cout << "podaj a: ";
cin >> a;
cout << "podaj b: ";
cin >> b;
cout << "Wynik to : " << (1 + sqrt(a)) / (a - b) << endl;
return 0;
}
Przykładowe rozwiązania:
podaj a: 2
podaj b: 1
Wynik to : 2.41421
----