mirror of
https://github.com/nolongeractivemp3/shipthatcode-c.git
synced 2026-11-24 10:45:12 +01:00
17 lines
276 B
C
17 lines
276 B
C
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
int nums[5];
|
|
for (int i = 0; i < 5; i++) scanf("%d", &nums[i]);
|
|
|
|
int best = 0;
|
|
for (int i = 0; i<5; i++) {
|
|
if (nums[i] > best) {
|
|
best= nums[i];
|
|
}
|
|
}
|
|
|
|
printf("%d\n", best);
|
|
return 0;
|
|
}
|