Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n, k, cifre = 1;
- cin >> n >> k;
- if(k == 0)
- {
- cout << 1;
- return 0;
- }
- cout << 1;
- while(n > 9)
- {
- cifre++;
- n /= 10;
- }
- --cifre;
- for(int i = 1; i <= cifre * k; i++)
- {
- cout << 0;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement