Question: I've problem to merge 3 variable become in to one variable:

example :

```
int var1,var2,var3;
int result;
var1 = 1;
var2 = 2;
var3 = 3;

result = ........??;

printf("Result %d",result);

output :
123

```

How can I do this?

Answer: 
printf("Result %d%d%d",var1, var2, var3);
Do you really need int variables ? Does string meet you requirements ?

```
#include <iostream>
#include <sstream>
#include <string>
using namespace std;

int
main()
{
    int var1 = 1;
    int var2 = 2;
    int var3 = 3;

    ostringstream oss;
    string result;

    oss<<var1<<var2<<var3;

    result = oss.str();
    cout<<result<<endl;
    return 0;
}

```