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