/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <stdio.h>
int findMax(int numbers[], int size){
int max = numbers[0];
for(int i=0;i<size;i++){
if (numbers[i]>max){
max = numbers[i];
}
}
return max;
}
int main()
{
int numbers[10] = {10,52,23,74,15,67,38,29,40,51};
int max_value = findMax(numbers,10);
printf("배열의 최댓값은 %d 입니다\n",max_value);
return 0;
}