Advertisement
fqrmix

Untitled

Nov 4th, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. int result(int val_a){
  2.     if(val_a % 3 == 0)
  3.         return val_a;
  4.     else return 0;
  5. }
  6. void input() {
  7.     int value;
  8.     printf("Введите число");
  9.     scanf("%d", &value);
  10. }
  11. void output(val_a) {
  12.     int value = result(val_a);
  13.     if (value != 0)
  14.         printf("Делится на 3");
  15.     else printf("Не делится на 3");
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement