Help using 6 button 6 led code

Hey everyone, so I am trying to program and wire up 6 leds to 6 different button. So if you push button 1, led 1 lights, button 2 lights led 2 and so on. And actually that part is already solved.However,i have different problems on how to build code for button combination.For example, when i pressed both button 1 and button 2, certain led will on (different led from single button pressed)and someone said that i have to assign a button a binary value and use the bitWrite function to turn on the led but i really dont understand at all how to use them..help me please..Here is the code that I am using, can anyone help me for the combination button?

Your help is much appreciated.Thanks

int LED1 = 9;
int LED2 = 8;
int LED3 = 7;
int LED4 = 10;
int LED5 = 11;
int LED6 = 12;

int BUTTON1 = 1;
int BUTTON2 = 2;
int BUTTON3 = 3;
int BUTTON4 = 4;
int BUTTON5 = 5;
int BUTTON6 = 6;

void setup(){

pinMode(LED1,OUTPUT);
pinMode(LED2,OUTPUT);
pinMode(LED3,OUTPUT);
pinMode(LED4,OUTPUT);
pinMode(LED5,OUTPUT);
pinMode(LED6,OUTPUT);

pinMode(BUTTON1,INPUT);
pinMode(BUTTON2,INPUT);
pinMode(BUTTON3,INPUT);
pinMode(BUTTON4,INPUT);
pinMode(BUTTON5,INPUT);
pinMode(BUTTON6,INPUT);

digitalWrite(LED1,LOW);
digitalWrite(LED2,LOW);
digitalWrite(LED3,LOW);
digitalWrite(LED4,LOW);
digitalWrite(LED5,LOW);
digitalWrite(LED6,LOW);

}

void loop(){

if(digitalRead(BUTTON1) == HIGH){ // Alphabet "A"
  
  digitalWrite(LED1,1);

}else{

  digitalWrite(LED1,0);
}

if(digitalRead(BUTTON2) == HIGH){ //Alphabet "S"
  digitalWrite(LED2,1);
  digitalWrite(LED3,1);
  digitalWrite(LED4,1);
 
}else{

  digitalWrite(LED2,0);
  digitalWrite(LED3,0);
  digitalWrite(LED4,0);
}

if(digitalRead(BUTTON3) == HIGH){ //Alphabet"D"
  digitalWrite(LED1,1);
  digitalWrite(LED4,1);
  digitalWrite(LED5,1);

}else{

  digitalWrite(LED1,0);
  digitalWrite(LED4,0);
  digitalWrite(LED5,0);
}

if(digitalRead(BUTTON4) == HIGH){ //Alphabet"J"
  digitalWrite(LED2,1);
  digitalWrite(LED4,1);
  digitalWrite(LED5,1);

}else{

  digitalWrite(LED2,0);
  digitalWrite(LED4,0);
  digitalWrite(LED5,0);
}

if(digitalRead(BUTTON5) == HIGH){ //Alphabet "K"
  digitalWrite(LED1,1);
  digitalWrite(LED2,0);
  digitalWrite(LED3,1);

}else{

  digitalWrite(LED1,0);
  digitalWrite(LED2,0);
  digitalWrite(LED3,0);
}

if(digitalRead(BUTTON6) == HIGH){ //Alphabet "L"
  digitalWrite(LED1,1);
  digitalWrite(LED2,1);
  digitalWrite(LED3,1);

}else{

  digitalWrite(LED1,0);
  digitalWrite(LED2,0);
  digitalWrite(LED3,0);
}
if((digitalRead(BUTTON1) == HIGH) && (digitalRead(BUTTON2) == HIGH)){ //Alphabet "B"

digitalWrite(LED1,1);
digitalWrite(LED2,1);
digitalWrite(LED3,0);
digitalWrite(LED4,0);
digitalWrite(LED5,0);
digitalWrite(LED6,0);


}else{

digitalWrite(LED1,0);
digitalWrite(LED2,0);
digitalWrite(LED3,0);
digitalWrite(LED4,0);
digitalWrite(LED5,0);
digitalWrite(LED6,0);
}
if(digitalRead(BUTTON1) == HIGH && (digitalRead(BUTTON3) == HIGH)){ //Alphabet "C"

digitalWrite(LED1,1);
digitalWrite(LED4,1);
digitalWrite(LED3,0);
digitalWrite(LED2,0);
digitalWrite(LED5,0);
digitalWrite(LED6,0);


}else{

digitalWrite(LED1,0);
digitalWrite(LED4,0);
digitalWrite(LED3,0);
digitalWrite(LED2,0);
digitalWrite(LED5,0);
digitalWrite(LED6,0);
}



}

There is a ‘change in state’ example in the IDE you should incorporate in your sketch instead of using switch levels.

Also, scan your switches every 50ms to add a debounce feature to the sketch.

This looks like a duplicate of Push 2 Button simulteneously to produce led as output - Programming Questions - Arduino Forum

Are you and DropDeath working together ?

Another approach:
You have 6 LEDs, 6 bools to keep the state (make this into an array, much easier overall and doing so will impress your teacher just that bit more).

At the start of loop(); reset them all (set to false - use a for loop). LEDs default to off at this point.
Then based on which button is pressed, set the required bools to true, don't touch the others.
At the end of loop, set the LEDs on/off based on the current state of those bools (again a single for loop can do this, if you have both your LED pins and the states in the array).

im not sure what am i doing but is the code right?and i dont know how to start writing the button pressed and which led on..can you help me?im so clueless..

int Buttons[6]={2,3,4,5,6,7};
int LEDs[6]={8,9,10,11,12,13};
boolean Boolean_State = 0;




void setup() {
  // put your setup code here, to run once:
for(int i = 2; i <= 7; i++)
{
  pinMode(Buttons[ i ], INPUT); // i = 2
  pinMode(LEDs[ i + 6 ], OUTPUT); //i  + 6 = 8, and so on to i + 6 = 13
  digitalWrite(Buttons[ i ],HIGH);
}
}

void loop() {
  // put your main code here, to run repeatedly:
for(int i =2; i <= 7; i++)
{
  digitalWrite(LEDs[ i + 6 ],Boolean_State);
  delay(500);
  Boolean_State = !Boolean_State;
}
if (digitalRead(switchPin) == LOW) {
    // switch is pressed - pullup keeps pin high normally
    delay(100);                     // delay to debounce switch

Weird way of using array index. The index of a 6-element array goes from 0 to 5.

for(int i = 0; i <= 6; i++)
{
  pinMode(Buttons[ i ], INPUT);
  pinMode(LEDs[ i ], OUTPUT);
  digitalWrite(Buttons[ i ],HIGH);
}

That'll do a whole lot better.

Mind: the index and the actual value of the element are two independent things.