please help me write a program that will allow mr to input 10 integer numbers in
ID: 3622583 • Letter: P
Question
please help me write a program that will allow mr to input 10 integer numbers in an array named fmax and determine the maximum value entered. This program should contain only one loop, and the maximum should be determined as array element values are being imput. Now repeat this and keep track of both the maximum element and the index number for the maximum after displaying the numbers, print these two messages (replacing the underlines with the correct answers. The maximum value is___________. This is an element number___________in the list of numbers. repeat having it find the min.Explanation / Answer
please rate #include using namespace std; int main(){ int n,i,fmax[100]; int max=-999,maxindex=-1,min=9999,minindex=-1; coutn; for(i=0;i>fmax[i]; if( fmax[i]>max ){ max = fmax[i]; maxindex = i+1; } if ( fmax[i]Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.