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