Turning Led on and off by Separate Buttons

I want to control an led with two different buttons in which one button will turn on the led and the other button will turn the led off. Is it Possible ?

Moved your topic to a mores suitable section.

You may want to READ THIS for future reference.
It will help you get the best out of the forum.

Bob.

Yes it is possible.

The technique you're looking for is "state change detection". See the IDE examples.

wvmarle:
The technique you're looking for is "state change detection". See the IDE examples.

I don't think that's relevant/necessary. Not for the OP's requirement as they have described. Those examples are about detecting when a button changes from being not pressed to being pressed, or vice-versa. That's of no benefit here. If the on button is pressed, turn the led on. Doesn't matter if the button was or was not pressed the previous time it was checked.

As mentioned, this is very possible.

Is this a programming assignment?

Use CTRL T to format your code.
Attach your ‘complete’ sketch between code tags, use the </> icon in the posting menu.
[code]Paste your sketch here[/code]

Not an Arduino problem. A 74HC00 will do this.

Switches to ground, 4k7 pull-up to 5 V on each.