fork(2) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int a,b;
  6.  
  7. scanf("%d,%d",&a,&b);
  8. if(b%a==0){
  9. printf("aはbの約数です");
  10. }
  11. else{
  12. printf("aはbの約数ではありません");
  13. }
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5324KB
stdin
2,4
stdout
aはbの約数です