Code concepts are designed to show you how code works in a very simple fashion. They may not include both inputs and outputs, but running these programs should give you an idea of how the building blocks of many programs work.
Alternate Blinking LEDs with millis()