2 LED toggle with 3 buttons

Hi everyone,
Here is my small project description: Use 3 buttons to toggle 2 LED's (Green and Yellow) in the following sequence: (at start LED is off) press button 1 to turn on the Green LED and blink , press button 2 to turn on the Yellow LED and blink turn , when the button 3 is pressed both led blink. button 1 & 2 on/off switch and button 3 push button(bell switch).

i use 2 on/off switch
and button 3 is push botton

What have you tried so far ?

const int LED1=0;
const int LED2=1;

const int Button1=2;
const int Button2=3;
const int Button3=4;

int val1=0; // button1
int val2=0; // button2
int val3=0; // button3

void setup()
{
pinMode(LED1,OUTPUT);
pinMode(LED2,OUTPUT);
pinMode(Button1,INPUT);
pinMode(Button2,INPUT);
pinMode(Button3,INPUT);
}

void loop()

{
val1=digitalRead(Button1);
if(val1==LOW)
digitalWrite(LED1,HIGH);
else
digitalWrite(LED1,LOW);

val2=digitalRead(Button2);
if(val2==LOW)
digitalWrite(LED2,HIGH);
else
digitalWrite(LED2,LOW);

}

const int LED1=0;
const int LED2=1;

Why not "yellowLED" and "greenLED"?

If you weren't using the serial port pins to drive LEDs, you could put the serial port to better use.

Please remember to use code tags when posting code.

help me to confiner push button 3

We are doing that. But we get very little response from you (except cross posts...)

How long have we got?
When do you have to hand in our assignment?