#include <stdio.h>
int main()
{
int size, number, max = 0;
scanf("%d", &size);
for (int i = 0; i < size; i++)
scanf("%d", &number);
if (number > max)
max = number;
}
printf("%d", max);
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <stdio.h>
int main()
{
int size, number, max = 0;
scanf("%d", &size);
for (int i = 0; i < size; i++)
{
scanf("%d", &number);
if (number > max)
max = number;
}
printf("%d", max);
return 0;
}