Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write a program with a loop that lets the user enter aseries of integers, follow

ID: 3609576 • Letter: W

Question

write a program with a loop that lets the user enter aseries of integers, followed by a -99 to signal the end of thesereies. After all the numbers have been entered, the programshould display the largest and smallest numbers entered. i honestly dont know where to start on this one. if it were aconstant number being entered then i could write a series of ifelse statements using relational operators like if x<y display"x, y" but i have no idea how to write it with an underterminedamount of input numbers. anything will help immensely. if you write the majority of thecode it would help me out so much to see the basic idea of how itshould be put together, but i realize writing code takes time.either way, help is really appreciated! i honestly dont know where to start on this one. if it were aconstant number being entered then i could write a series of ifelse statements using relational operators like if x<y display"x, y" but i have no idea how to write it with an underterminedamount of input numbers. anything will help immensely. if you write the majority of thecode it would help me out so much to see the basic idea of how itshould be put together, but i realize writing code takes time.either way, help is really appreciated!

Explanation / Answer

please rate - thanks #include #include using namespace std; int main(void) { int i=0,j,num[50],large,small; coutnum[i]; large=num[0]; small=num[0]; while(num[i]!=-99)      {if(num[i]>large)          large=num[i];       if(num[i]