fork download
  1. #include <stdio.h>
  2.  
  3. int pole();
  4.  
  5. int main(void) {
  6.  
  7. int a = pole();
  8.  
  9. printf("%d", a);
  10.  
  11. return 0;
  12. }
  13.  
  14. int pole()
  15. {
  16. int array[5] = {5,4,3,2,1};
  17. for (int i = 0;i < 4; i++)
  18. {
  19. if(array[i]-1 != array[i+1])
  20. {
  21. return 0;
  22. }
  23.  
  24. }
  25. return 1;
  26. }
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
1