Make a int number by elements of a array. C code : I have a keypad that connects to lcd by atmega32 avr. 
I writes its lcd and keypad functions well. 
But now i have a problem; 
I store entered key by keypad in a array name l[i].i take numbers by while loop. Operator only can enter number under 999.  For example  operator  enter 2 then 6,then9. My Array is  l[3]={2,6,9}. Now i wanna make a int number y=269.  How can i?
I wanna can do it for 1-3 digit numbers. Keypad can put 0-999 numbers. 
    
Thanks
