Action() {

//实现一个3位数的倒序输出(123输出321)    

int n;    

int m=321;    

n=fun_mod(m,n);  

lr_output_message("%d",n);  

return 0;

}

int fun_mod(int m,int n){

 while(m){   

n=n*10+m%10;   

m/=10;   

lr_output_message("%d,%d",n,m);  

}  

 return n;

}

相关文章:

  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-17
  • 2022-01-06
  • 2022-12-23
相关资源
相似解决方案