What do you want to save?
Add Code snippet
New code examples
-
C 2021-09-04 21:07:03
adding digits of a number in c
//program to find the sum of digits: #include<stdio.h> int main() { int num,sum=0,r,temp; printf("Enter the number:\n "); //taking input from the user scanf("%d",&num); temp=num; //assigning num to temp... Add solution