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