write a program to read a four digit integer and print the sum of its digits.Hint :Use / and % operators.
问题描述:
write a program to read a four digit integer and print the sum of its digits.
Hint :Use / and % operators.
答
#include<stdio.h>int main(){\x05int a,b,c,d,num;\x05printf("please input a num between 1000~9999!\n");\x05scanf("%d",&num);\x05a=num/1000...