If your two variables are definitely integers, then
pin = (in*10)+in2;
would work.If not, read them in lines (possibly with in.toString (), depending on the language) and just do
pin = int.parse(in.toString()+in2.toString());
(Although, again dependent on language, you may have to do something other than int.parse [in C # you should use int.TryParse () for example])