You Will take 10 numbers from the User and you will get the Max and the Min (in while)
1
Expert's answer
2012-10-24T10:30:15-0400
#include<iostream.h>
int a[10]; int i, max, min;
void main(){
i = 0; while (i<11){ & cout<<"enter a number: "; & cin>>a[i]; & if (i==0) max = min = a[0]; & if (max<a[i]) max=a[i]; & if (min>a[i]) min=a[i]; & i++; }
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