#include <stdio.h>
int main()
{
start:
int a,num;
printf("***************============================***************\n");
printf("please input number\n");
scanf("%d",&a);
if (a<32750){
num=a/100000+((a/10000)%10)+((a/1000)%10)+((a/100)%10)+((a/10)%10)+a%10;
printf("magmoe argham=%d\n",num);}
else
printf("please input one 0<number<32750\n");
goto start;
return 0;
}
#include <stdio.h>
int main()
{
start:
int a,num;
printf("***************============================***************\n");
printf("please input number\n");
scanf("%d",&a);
if (a<32750){
num=a/100000+((a/10000)%10)+((a/1000)%10)+((a/100)%10)+((a/10)%10)+a%10;
printf("magmoe argham=%d\n",num);}
else
printf("please input one 0<number<32750\n");
goto start;
return 0;
}