Mam problem z banalnym [jednak nie ogarniam] błędem, oto gotowy kod:
#include <iostream>
using namespace std;
int main()
{
float a,b,c,d;
cout << "a: ";
cin >> a;
cout << "\nb: ";
cin >> b;
cout << "\nc: ";
cin >> c;
cout << "\nd: ";
cin >> d;
cout << endl << endl;
if(a > b) // 1
{
if(b > c)
{ // 2
if(c>d)
{
cout << d;
}
else
{
cout << c;
}
else if(b>d)
{
cout << d;
}
else
{
cout << b;
}
}
else if(a > c)
{ // 2
if(c>d)
{
cout << d;
}
else
{
cout << c;
}
else if(a>d)
{
cout << d;
}
else
{
cout << a;
}
}
}
system("pause>nul");
return 0;
}