#4510. 哪吒的灵力拆解挑战
哪吒的灵力拆解挑战
太乙真人给哪吒一颗刻有两位数的灵珠,哪吒需要:
1:拆解数字的十位和个位
2:比较哪一个数更大
3:输出较大的数位
横线处填写合适的代码
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
if(________){
cout<<n%10;
}else{
cout<<n/10;
}
return 0;
}
{{ select(1) }}
- n/10>n%10
- n>n%10
- n%10>n/10
- n/10==n%10