Перевести на си program array18; var a: array[1..10] of integer; i, k: integer; begin for i : = 1 to 10 do read(a[i]); for i : = 1 to 9 do if a[i] > a[10] then begin k : = i; break; end; writeln(a[k]); end.
int main(void) { int arr[10], k; for (int i = 0; i < 10; ++i) scanf("%d", &arr[i]); for (int i = 0; i < 9; ++i) if (arr[i] > arr[9]) { k = i; break; } printf("%d", arr[k]); }
int main() { int A[10]; int K = 0; for (int i = 0; i < 10; i++) scanf("%d", &A[i]); for (int i = 0; i < 9; i++) if (A[i] > A[9]) { K = i; break; } printf("%d", A[K]); }
int main(void)
{
int arr[10], k;
for (int i = 0; i < 10; ++i) scanf("%d", &arr[i]);
for (int i = 0; i < 9; ++i)
if (arr[i] > arr[9]) { k = i; break; }
printf("%d", arr[k]);
}
int main() {
int A[10];
int K = 0;
for (int i = 0; i < 10; i++)
scanf("%d", &A[i]);
for (int i = 0; i < 9; i++)
if (A[i] > A[9]) {
K = i;
break;
}
printf("%d", A[K]);
}