提交时间:2024-05-12 15:28:16
运行 ID: 47116
#include<iostream> using namespace std; int main() { int n,a,b; int s1,s2,s3; a=b=0; n=0; s1=num1/100; s2=num1/10%10; s3=num1%10; int sum=0; sum=s1+s2+s3; cout<<sum; return 0; }