Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #define ULL unsigned long long int
- using namespace std;
- int nrc(int n) /// NIntoarce numarul de cifre ale lui n
- {
- int nr=0;
- while(n)
- ++nr,n/=10;
- return nr;
- }
- int main()
- {
- int n;
- cin>>n;
- int c=nrc(n);
- cout<<n;
- for(int i=1;i<=n-c;++i)
- cout<<0;
- cout<<'\n';
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement