make 1 number with two

Hi everybody,

I need help in my project. The title is maybe not really explicit but I don't know how to name it...

So, in my program, I have two variable between 10 and 99 name val1 and val2 (for exemple), and I would like to gathered them together to create a varibale named total.

For exemple, if val1 = 45 , and val2 = 68 , I would like total to be equal to 4568.

I don't know if you understand what I mean... :confused:

Thank for your answer and your help :wink:

Hi,
45*100 + 68 = 4568.

total = (val1 *100) + val2;

Tom... :slight_smile:

Oh yes !

Thank you !