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