2022年9月5日

摘要: #include<stdio.h> int main() { int n; scanf("%d",&n); if(n<0) { n=-n; } printf("%d\n",n); return 0; } 阅读全文

posted @ 2022-09-05 09:59 lachesism 阅读(364) 评论(0) 推荐(0)

摘要: #include<stdio.h> int main() { int n,a,b,c,sum; scanf("%d",&n); a=n/100; b=(n/10)%10; c=n%10; sum=a+b+c; printf("%d",sum); } 阅读全文

posted @ 2022-09-05 09:56 lachesism 阅读(253) 评论(0) 推荐(0)