fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a=2;
  6. int x;
  7. do
  8. {
  9. x=a;
  10. x=3*x-2;
  11. for(x=a;(100<=x)&&(x<=1000);x=3*x-2)
  12. {
  13. printf("%d ",x);
  14. }
  15. }
  16. while(x>=100);
  17. for(x=a;(100<=x)&&(x<=1000);x=3*x-2)
  18. {
  19. printf("%d ",x);
  20. }
  21. return 0;
  22. }
  23.  
Success #stdin #stdout 0s 5300KB
stdin
1
stdout
Standard output is empty