刘嘉柚 • 5个月前
#include<iostream>
using namespace std;
bool iszero(int a){
if(a==0) return true;
else return false;
}
int main(){
int n;
cin>>n;
while(1){
if(iszero(n%10)) n/=10;
else break;
}
while(n){
cout<<n%10;
n/=10;
}
return 0;
}`
评论: