为了账号安全,请及时绑定邮箱和手机立即绑定

个位数、十位数、百位数、千位数

 #include "stdio.h"
void main()
{
    int n=1234;
    int gw=n%10;
    n/=10;
    int sw=n%10;
    n/=10;
    int bw=n%10;
    int qw=n/10;
    printf("%d,%d,%d,%d",gw,sw,bw,qw);
}

正在回答

举报

0/150
提交
取消

个位数、十位数、百位数、千位数

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信