Sunday, November 28, 2010

Write a C program to print multiplication of the given two decimal number

#include

main()
{
int n=0;
int mul=1;
printf("Enter the values of n\n");
scanf("%d",&n);
while (n>0)
{
mul*=n%10;
n=n/10;
}
printf("mul=%d\n",mul);
}