c language
c language
日期:2022-02-09 17:11:49 人气:1
#include<stdio.h>
int shuix(int n)
{
int sum = 0;
char p[10];
int i = sprintf(p, "%d", n) - 1;
while (i > 0)
sum += p[i--] - '0';
return s
int shuix(int n)
{
int sum = 0;
char p[10];
int i = sprintf(p, "%d", n) - 1;
while (i > 0)
sum += p[i--] - '0';
return s