Putting variable behind each other

nunofyourbusiness:
If you simply want to print a followed by b the void loop should be:

Serial.print(a);
Serial.println(b);
delay();

This would make it a 22 if your vairables are 2 and 2; it would be a 35 if a is 3 and b is 5, etc.

No wanted to make it into one single variable so I could use it for something like delay(); but thank :wink:

AWOL:
Are you looking for int c = (a * 10) + b;

Yes that was exactly what I was looking for although I should've been able to think of something like that but I guess not, thank you so much!

Jiggy-Ninja:
Do you have the slightest idea about what the comma operator does, or are you just guessing?

It's one thing to try something that's merely wrong, it's another thing entirely to try something like "what could have possibly made you think that would work?"

Yes I know a bit about how it works but I felt like I had to show how it would logically work in my head but I shouldn't have its only confusing people, my fault.