Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- using namespace std;
- int main()
- {
- string s;
- cin >> s;
- int number = 0;
- for(int i = 0; i < s.size(); i++) {
- number = (number * 10) + (s[i] - '0');
- }
- cout << number << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement