#include <iostream>
using namespace std;
int main() {
int n;
cout<<" enter a number : "<<endl;
cin>>n;
int sum;
sum = 1;
while(n>0){
int ld;
ld = n%10;
sum = sum * ld;
n = n/10;
}
cout<<sum;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: