#include <iostream>
#include <cstdio>
using namespace std;
float maxi(float a, float b, float c, float d, float e)
{
float max = a;
if (b>max)
max = b;
if (c>max)
max = c;
if (d>max)
max = d;
if (e>max)
max = e;
return max;
}
int main()
{
int x, y, z, w, s;
cout << "Podaj piec liczb, a znajde najwieksza";
cin >> x >> y >> z >> w >>s ;
cout << "Najwieksza z nich to:" << maxi(x,y,z,w,s);
cin.ignore ();
getchar ();
return 0;
}
Brak komentarzy:
Prześlij komentarz