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