Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int num,i,t=1,rem;
- scanf("%d",&num);
- if(1<=num<=999999)
- {
- while(num!=0)
- {
- rem=num%10;
- t=t*rem;
- num=num/10;
- }
- printf("%d",t);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement