Home > Back-end >  Programming assignments for help.
Programming assignments for help.

Time:11-05

. Write a program to the user to enter the number of integers is to find the minimum and maximum number number, number of users to stay in the first line of the input data in the second line of the input data, the program in the next line of the output data of the maximum and the minimum, in c + + for bosses to help,

CodePudding user response:

 
#include
using namespace std;
Int main ()
{
Int a [100]={0};
Int the Max and min.
int i,j;
While (1)
{
Cin> j;
for(i=0; i{
Cin> A, [I].
}
Max min==a, [0].
for(i=1; i{
If (max{
Max=a, [I].
}
If (min> A [I])
{
Min=a, [I].
}
}
Cout<" Max="& lt;

CodePudding user response:

怎样运用程序

CodePudding user response:

Do me a favor again, use the application

CodePudding user response:

Don't show the Max min
  • Related