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;
}