C program
Explanation:
#include
#include
void main()
{
int num, i, count=0, sum=0, multi=1;
printf(“Enter a number”);
scanf(“%d”,&num);
while(num!=0)
{
digi=num%10;
count++;
if(count/2==0)
sum=sum+digi;
else
multi=multi*digi;
num=num/10;
}
printf(“Sum of digit at even position in a number is %d,”,sum);
printf(“Multiplication of digit at odd position in a number is %d,”,multi);
}