首页 › 答案 › 题库 › 网课

假定x为int型,判断它个位数是否为3,应该使用:()。

假定x为int型,判断它个位数是否为3,应该使用:()。
A、if(x%3==0)
B、if(x/10==3)
C、if(x/3==0)
D、if(x%10==3)
正确答案:if(x%10==3)
标签:个位数 假定