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