#include
char main(void)
{
char A[50], n = 50,i,max;
srand(time(0));
printf("Array A[50]: \r\n ");
for (i=0; i {
A[i] = -5+ rand(0) %10;
printf("%d ", A[i]);
}
max = A[0];
for (i=0; i {
if (A[i]>max)
{
if (A[i]>0) max = A[i];
}
}
printf(" \r\n Max: %d ", max);
}