fork download
  1. #include <stdio.h>
  2. #include <locale.h>
  3.  
  4. int del(int a, int b)
  5. {
  6. if (a / b)
  7. return a;
  8. else
  9. return 0;
  10.  
  11. }
  12.  
  13. int main()
  14. {
  15. setlocale(LC_ALL, "RU");
  16. int a = 10, b = 1;
  17.  
  18. if (del(a, b))
  19. printf("\n %d делиться на %d надцело", a, b);
  20. else
  21. {
  22. printf("\n %d не делиться %d надцело", a, b);
  23. }
  24.  
  25. return 0;
  26. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
 10 делиться на 1 надцело