dodan izračun povprečja

This commit is contained in:
iva
2026-10-18 12:21:40 +02:00
parent 221511d619
commit 737bead3bb
2 changed files with 5 additions and 3 deletions
BIN
View File
Binary file not shown.
+5 -3
View File
@@ -5,7 +5,7 @@ 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;
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);
@@ -15,7 +15,9 @@ int main (){
najmanjsa = fmin (najmanjsa,h);
najmanjsa = fmin (najmanjsa,i);
najmanjsa = fmin (najmanjsa,j);
cout << "Minimum" << najmanjsa;
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;
}