Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  1234
Language: C/C++
Code:
#include<stdio.h>
#include<stdlib.h>
int main() {
     int max, n, i, a;
     scanf("%d", &n);
     scanf("%d", &max);
     for (i = 0; i < n-1; i++) {
          scanf("%d", &a);
          if (a > max) {
               max = a;
          }
     }
     printf("%d\n", max);
     system("pause");
     return 0;
}

          
          
Comments: