#include<iostream.h>
#include<conio.h>
void main()
{
                int num,product=1,remainder;
                clrscr();
                cout<<"Enter A Number : - ";
                cin>>num;
                do
                                {
                                remainder=num%10;
                                product=product*remainder;
                                num=num/10;
                                }while(num>0);
                cout<<"The Product Is :- "<<product;
                getch();
}

36

Advertisements