Answer to Question #5306 in C++ for anum
write a program which takes 10 numbers from the user,save them in an array.find the minimum value from the data.
float a, min;
& cout<<"Enter a number "<<i+1<<": ";
min = a;
for (i=0;i<=9;i++) if (a[i]<min) min = a[i];
cout<<"Minimum is "<<min;
No comments. Be first!