76 297
Assignments Done
Successfully Done
In May 2019

Answer to Question #5306 in C++ for anum

Question #5306
write a program which takes 10 numbers from the user,save them in an array.find the minimum value from the data.
Expert's answer

# include<iostream.h>
# include<conio.h>
void main(){
float a[10], min;
int i;
for (i=0;i<=9;i++){
& cout<<"Enter a number "<<i+1<<": ";
& cin>>a[i];
min = a[0];
for (i=0;i<=9;i++) if (a[i]<min) min = a[i];
cout<<"Minimum is "<<min;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions