完整代码实例:
#include#include using namespace std; int main(){ int n; cin >> n; int i = n/100; // 百位的个数 n = n % 100; int j = n/10; // 十位的个数 int k = n % 10; //个位的个数 for(int s = 0;s

完整代码实例:
#include#include using namespace std; int main(){ int n; cin >> n; int i = n/100; // 百位的个数 n = n % 100; int j = n/10; // 十位的个数 int k = n % 10; //个位的个数 for(int s = 0;s