Transform two int into one int

Hello,
I have two int variable that I would like to put end to end to form only one int variable :

int a= 2, b= 3;
int c=//I would like variable c to be equal to 23

Do you have an idea to solve my problem ?
Thank you.

1 Like

Processing.org/reference/strconvert_.html
Processing.org/reference/intconvert_.html

int a = 2, b = 3;
int c = int(str(a) + b);
println(a, b, c);
exit();
2 Likes

Write the code to do this mathematical expression:

2*10 + 3*1 = 23

:slight_smile:

2 Likes

Thank you very much. :+1: