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