# Answer to Question #27581 in Action Script | Flash | Flex | ColdFusion for Emma

Question #27581

3. Write a program that reads in a continuous list of numbers, stopping when the user enters a negative. Once complete, the program should output the largest number received

#include<stdio.h>

main()

{

int n,min,int,max;

printf("enter as many numbers as you like ");

scanf("%d",&n);

printf("Enter the numbers:");

scanf("%d",&min);

max=min;

for(int=2;int<=n;int++)

scanf("%d",&min);

if(min>max)

max=min;

}

printf("The Largest Number is %d",max);

}

(num>0)

{

printf("It is a Positive number") ;

printf("It is a negative number") ;

}

return max num;

}

#include<stdio.h>

main()

{

int n,min,int,max;

printf("enter as many numbers as you like ");

scanf("%d",&n);

printf("Enter the numbers:");

scanf("%d",&min);

max=min;

for(int=2;int<=n;int++)

scanf("%d",&min);

if(min>max)

max=min;

}

printf("The Largest Number is %d",max);

}

(num>0)

{

printf("It is a Positive number") ;

printf("It is a negative number") ;

}

return max num;

}

Expert's answer

Dear visitor

Unfortunately, the statement of your question is a bit confusing.

What do you need to be done? Please, give us the details so we could help you

Unfortunately, the statement of your question is a bit confusing.

What do you need to be done? Please, give us the details so we could help you

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment