//this is a program to find the number of digits,sum of digits and reverse
#include<stdio.h>
#include<conio.h>
void main()
{
int rem,num,sum=0,rev=0,count=0;
printf("\n\nEnter any number: ");
scanf("%d",&num);
while(num>0)
{
rem=num%10;
rev=(rev*10)+rem;
sum=sum+rem;
count++;
num=num/10;
}
printf("\n\nThe Number of entered digits is %d",count);
printf("\n\nThe Sum of entered digits is %d",sum);
printf("\n\nThe Reverse of the entered digit is %d",rev);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int rem,num,sum=0,rev=0,count=0;
printf("\n\nEnter any number: ");
scanf("%d",&num);
while(num>0)
{
rem=num%10;
rev=(rev*10)+rem;
sum=sum+rem;
count++;
num=num/10;
}
printf("\n\nThe Number of entered digits is %d",count);
printf("\n\nThe Sum of entered digits is %d",sum);
printf("\n\nThe Reverse of the entered digit is %d",rev);
getch();
}