fork(2) download
  1. #include <stdio.h>
  2. #define abc if (i == 1) printf("こんにちわ\n");else printf("こんばんわ\n");
  3.  
  4. int main(void)
  5. {
  6. int i;
  7. printf("数字入力:");
  8. scanf("%d", &i);
  9. abc
  10. return 0;
  11.  
  12. }
Success #stdin #stdout 0s 2160KB
stdin
2
stdout
数字入力:こんばんわ