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