Computer Science, asked by pallaviaher87672, 18 days ago

write a C program by using function to calculate sum of digits of an integer use this function in main​

Answers

Answered by tajit9914
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
Math, 9 months ago