#include <stdio.h>
#include <stdlib.h>
int main() {
int max = 0;
int a = 0;
int *arr = (int*)malloc(9 * sizeof(int));
for(int i=0; i<9; i++){
scanf("%d", &arr[i]);
}
for(int i=0; i<9; i++){
if(max < arr[i]){
max = arr[i];
a = i+1;
}
}
printf("%d", max);
printf("\n");
printf("%d", a);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: