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