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