fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int i=1,a,max=0;
  6. do
  7. {
  8. scanf("%d",&a);
  9. if(a>=max)
  10. max=a;
  11. i++;
  12. }
  13. while(i<=20);
  14. printf("%d",max );
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5320KB
stdin
1 1 1 199 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2
stdout
199