fork download
  1. #include <stdio.h>
  2. int main(){
  3. int a=1,b=1;
  4. for(b=1;;b++){
  5. a=a*b;
  6. if(a>10000){
  7. break;
  8. }
  9. }
  10. printf("结果为%d;b为%d",a,b);
  11. }
  12.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
结果为40320;b为8