fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a;
  5. for (a=2;a<=1000;a=3*a-2)
  6. {
  7. if((a>=100)&&(a<=1000))
  8. printf("%d ",a);
  9.  
  10. }
  11. return 0;
  12. }
Success #stdin #stdout 0s 5256KB
stdin
Standard input is empty
stdout
244 730