2 Digital Inputs to control 1 Digital Output

I am trying to figure out how to program 2 digital inputs (like an AND statement) control 1 digital output.

EXAMPLE:

If digitalinput1 and digitalinput2 = HIGH

then

digitaloutput1 = HIGH

I know how to make this work with hardware but for a future project I will need to be able to do it in my programming. If anyone can send me examples or anything that would be great.

Also another question. Is there any software I can use to program my Arduino that uses Ladder Logic kind of like RSLOGIX5000 used for programming Allen Bradley PLCs? Thank You in Advance.

if (digitalRead(input1) && digitalRead(input2))
{
    digitalWrite(output1, HIGH);
}

(deleted)