write a program which takes 10 numbers from the user,save them in an array.find the minimum value from the data.
1
Expert's answer
2011-11-25T08:18:36-0500
# 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; getch(); }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment