fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int masiv[5] = { 1,3,19,15,13 };
  5. int max = masiv[0];
  6. for (int i = 0; i < 5; i++)
  7. {
  8. if (masiv[i] % 2 != 0 && masiv[i] > max)
  9. max = masiv[i];
  10. }
  11. printf("%d\n", max);
  12. }
Success #stdin #stdout 0s 4288KB
stdin
быдлокодер(А)
stdout
19