You are reading 3 now convert it to integer. which will be 3.

Now read A, Convert it to int which will be 10

Now combine them using atoi function.

Probably I wasnt clear in my previous post but I think this should.