fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int a,b,c,i,j=0;
  5. for(b=2,c=1;100<=a,a<=1000;){
  6. a=3*b+2*c;
  7. c=b;
  8. b=a;
  9. if(100<=a&&a<=1000){
  10. j=j+1;
  11. }
  12. }
  13. printf("%d",j);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5320KB
stdin
stdout
2