fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. short x; //описание переменных
  6. bool mult1, mult2;
  7. printf("Enter x=\n");
  8. scanf("%d",&x); //ввод числа
  9. mult1 = (x % 3 == 0);
  10. x=x/100+x/10%10+x%10;
  11. mult2 = (x % 3 == 0);
  12. if (mult1 == mult2) printf("not refuted"); //проверка признака
  13. else printf("refuted");
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 3416KB
stdin
321
stdout
Enter x=
not refuted