I need help on how to combine input. For example, I declare the variables a and b
int a,b;
Next I plan on taking the input. If I use:
scanf("%d%d", &a, &b);
it will take input "a" on one line, and then input "b" on another. I want them to appear as a whole
Instead of it taking input as:
22
11
I want it taking it in as
2211
I need to do display it this way according to the instructions of my program. How can do I this?
Sorry, if the answer is really easy, I'm a beginner.