Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- #include <string>
- #include <iostream>
- using namespace std;
- string IntToStr(int a) {
- string res = "";
- while (a) {
- char sym = '0' + a % 10;
- res = sym + res;
- a /= 10;
- }
- return res;
- }
- int main() {
- int a, b;
- cin >> a >> b;
- string res = IntToStr(a) + IntToStr(b);
- cout << res << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement