摘要: 1 #include <stdio.h> 2 #include <string.h> 3 4 int main() 5 { 6 long long n, x, sum; 7 scanf("%lld", &n); 8 x = n; 9 10 sum = 0; 11 while(x>0) 12 { 13 sum = sum + (x%10) * (x%10); 14 x /= 10; 15 } 16 阅读全文
posted @ 2019-10-09 20:20 Xxiaoyu 阅读(133) 评论(0) 推荐(0) 编辑