Computer Science, asked by 2008sachinverma, 27 days ago

राइट अ प्रोग्राम टू स्टार्ट टू नंबर्स कैलकुलेट एंड डिस्प्ले द सम प्रोडक्ट ऑफ 10 नंबर​

Answers

Answered by vaidhooryanair
0

Answer:

The program output is also shown below.

* C program to accept an integer & find the sum of its digits.

long num, temp, digit, sum = 0;

printf("Enter the number \n");

scanf("%ld", &num);

temp = num;

while (num > 0)

digit = num % 10;

sum = sum + digit;

Explanation:

Similar questions