iskanje in izpis najmanjse stevke
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user