fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int arr[8]={9,2,11,13,3,4,88,7};
  5. int max=-1;
  6. for(int i=0;i<4;i++){
  7. if (max<arr[i]){
  8. max=arr[i];
  9. }
  10. }
  11. printf("%d",max);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 5312KB
stdin
Standard input is empty
stdout
13