write a C program by using function to calculate sum of digits of an integer use this function in main
Answers
Answered by
0
Answer:
Let's see the sum of digits program in C.
1) #include<stdio.h>
2) int main()
3) {
4) int n,sum=0,m;
5) printf("Enter a number:");
6) scanf("%d",&n);
7) while(n>0)
8) {
Similar questions