fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int n;
  5. printf("Enter the number: ");
  6. scanf("%d",&n);
  7. int a=100;
  8. for(int i=1;i<=n;i++){
  9. printf("%d ",a);
  10. a=a-3;
  11. }
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5328KB
stdin
100
stdout
Enter the number: 100 97 94 91 88 85 82 79 76 73 70 67 64 61 58 55 52 49 46 43 40 37 34 31 28 25 22 19 16 13 10 7 4 1 -2 -5 -8 -11 -14 -17 -20 -23 -26 -29 -32 -35 -38 -41 -44 -47 -50 -53 -56 -59 -62 -65 -68 -71 -74 -77 -80 -83 -86 -89 -92 -95 -98 -101 -104 -107 -110 -113 -116 -119 -122 -125 -128 -131 -134 -137 -140 -143 -146 -149 -152 -155 -158 -161 -164 -167 -170 -173 -176 -179 -182 -185 -188 -191 -194 -197