#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int n,a,b,c,d,sum;
float avg;
printf("Enter 5-digit number:");
scanf(“%d”,&n);
a=n/10000;
n=n%10000;
b=n/1000;
n=n%1000;
c=n/100;
n=n%100;
d=n/10;
n=n%10;
sum=a+b+c+d+n;
avg=sum/5;
printf("Sum of the all digit is %d",sum);
printf("Average of all digit is %f",avg);
getch();
}