23 lines
866 B
C++
23 lines
866 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 << "\n";
|
|
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 << "\n";
|
|
double povprecje = (a+b+c+d+e+f+g+h+i+j)/10;
|
|
cout << "Povprecje:"<< povprecje << "\n";
|
|
double st-odklon =
|
|
return 0;
|
|
} |