How to code 5 Digit Binary Adder?

So like it would be something along the lines of...

int buttonA = 5; // change value if you used a different digital I/O pin
int buttonB = 7;

void setup(){
 pinMode(buttonA, INPUT);   //for user input
 pinMode(buttonB, INPUT);
 pinMode(10, OUTPUT);
 pinMode(12, OUTPUT);
}
void loop(){
 int inputA = digitalRead(buttonA); // read voltage on pin, store value in variable
 if(inputA == 1){ // if button is pressed
 digitalWrite(10, HIGH); // turn on LED on pin 10
 }
 else{ // else (if button is not pressed)
 digitalWrite(10, LOW); // turn off LED on pin 10
 }
}

then what how do I add the two inputted values what + what? Thanks for the help btw

its just adding and displaying the value is whats getting me