fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. int n,i;
  5. while(0>n && 11<n)
  6. {
  7. scanf("%d",&n);
  8. }
  9. for(i=n;i<11;i++)
  10. {
  11. printf("%d ",i);
  12. }
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5276KB
stdin
11
stdout
0 1 2 3 4 5 6 7 8 9 10