#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
do{
cout<<n%10;
if(n-1){
cout<<",";
}
n=n/10;
}
while(n!=0);
return 0;
}
给定一个整数,要求从个位开始分离出它的每一位数字。给定一个整数,要求从个位开始分离出它的每一位数字。我的代码错了可以帮我看一下怎么写吗
