Pomoże ktoś? Program zawsze mi zwraca ten sam wynik niezależnie od wprowadzonych wartości...
#define _USE_MATH_DEFINES
#include<iostream>
#include<cmath>
using namespace std;
void f1(double score1)
{
double solution;
solution = 0;
solution = score1 - pow(M_E, 3) + M_PI;
cout << solution;
}
void multiplier(double x, double y)
{
double score1;
score1 = 0;
score1 = (1 / 8) * sqrt(x + 2 * y);
f1(score1);
}
int main()
{
double x, y;
cout << "Podaj x" << endl;
cin >> x;
cout << "Podaj y" << endl;
cin >> y;
multiplier(x, y);
system("PAUSE");
return 0;
}