#include<stdio.h> #include<conio.h> int sum (int); int s=0; int main() { int num,x; printf("enter the number whose sum is to be find"); scanf("%d",&num); x=sum(num); printf("the sum of the entered number is %d",x); getch(); } int sum(int n ) { int r; if (n!=0) { r=n%10; s=s+r; sum(n/10); } else { return s; } }