iskanje in izpis najmanjse stevke

This commit is contained in:
iva
2026-10-18 12:13:00 +02:00
parent 43f9e9f6cc
commit 221511d619
2 changed files with 13 additions and 2 deletions
BIN
View File
Binary file not shown.
+13 -2
View File
@@ -3,8 +3,19 @@
using namespace std;
int main (){
double a,b,c,d,e,f,g,h,i,j; //lahko tudi float
cout << "Vpisi 10 stevilk: "
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;
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;
}