How to i use my custom keyboard?

Greetings. I was created custom keyboard on tinkercad.
Basically i bind 25 button with 3k resistor. And end button's resistor bind to arduino's A0 serial port.

Everything seems ok. Serial monitor working good. (Its going to 1024 for first button to 80 for last buttons)

I want create my custom keyboard. Problem is How can i write numbers as integer ?

Doing calculator is very easy on computer.
.....
Int num1,num2,answer;
Cout<< "enter num1";
Cin<<num1;
........

I dont know how to create my integers for numbers with custom keypad.
ready-to-sell Keypad's have library for this stuff but my keyboard working on serial.begin

Am i must learn c++ vectors? If my answer easy. Please write my code or guide

One digit at a time.

Are ten of your 25 buttons the digit buttons '0' through '9'?

To enter a multi-digit number, start with 0. Multiply the number by 10 and add the new digit each time a digit button is pressed.

See Keypad data entry. A beginners guide

i was readed my keyboard not similar ready-to-sell keyboard. i m not sure keypad.h working for i

its logically but actually i want create a [n*1] matrix and will change to int. example, [1,5,6,7]>integer 1567.
is it possible with my custom keyboard. SS is on this page.

Keypad.h will NOT work with a resistor-ladder keypad.