fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int n;
  5. printf("Enter the number: ");
  6. scanf("%d",&n);
  7. for(int i=1;i<=(2*n-1);i=i+2){
  8. printf("%d\n",i);
  9. }
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5288KB
stdin
10
stdout
Enter the number: 1
3
5
7
9
11
13
15
17
19