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=4;i<=(3*n-1);i=i+3){
  8. printf("%d\n",i);
  9. }
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5320KB
stdin
10
stdout
Enter the number: 4
7
10
13
16
19
22
25
28