Untitled
unknown
plain_text
a year ago
289 B
2
Indexable
Never
#include <stdio.h> #include <stdlib.h> void max(int n){ int a, b, i; scanf("%d", &a); for(i = 1; i < n; i++){ scanf("%d", &b); if (a < b){ a = b; } } printf("%d", a); } int main(int argc, char *argv[]) { int x; scanf("%d", &x); max(x); return 0; }