add variables together?

jonphenry

New Member
Is it possible to do this?

if b0 equals 5 and b1 equals 4, is there a way to put them together and put 54 into one variable?
 

hippy

Technical Support
Staff member
The PICAXE can do that. To put 54 into b2 when b0 = 5 and b1 = 4 ....

b2 = b0 * 10 + b1
 
Top