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