Files
p1-vaja2/statistika_10_vrdnosti.cpp
T
2026-10-18 12:13:00 +02:00

21 lines
735 B
C++

#include <iostream>
#include <cmath>
using namespace std;
int main (){
double a,b,c,d,e,f,g,h,i,j; //lahko tudi float
cout << "Vpisi 10 stevilk: ";
cin >> a >> b >> c >> d >> e >> f >> g >> h >> i >> j;
cout << "Stevilke so:" << a << " " << b << " " << c << " " << d << " " << e << " " << f << " " << g << " " << h << " " << i << " " << j;
double najmanjsa = fmin (a,b);
najmanjsa = fmin (najmanjsa,c);
najmanjsa = fmin (najmanjsa,d);
najmanjsa = fmin (najmanjsa,e);
najmanjsa = fmin (najmanjsa,f);
najmanjsa = fmin (najmanjsa,g);
najmanjsa = fmin (najmanjsa,h);
najmanjsa = fmin (najmanjsa,i);
najmanjsa = fmin (najmanjsa,j);
cout << "Minimum" << najmanjsa;
return 0;
}