fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int no;
  6.  
  7. printf("整数を入力せよ:");
  8. scanf("%d", &no);
  9.  
  10.  
  11. int a = 4;
  12.  
  13. while (a <= no)
  14. printf("%d ", a++);
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5308KB
stdin
7
stdout
整数を入力せよ:4 5 6 7