How Logic Works

Input/Output

Input is data that goes into a program — from a user typing, a file being read, or an API sending information.

Definition

Input is data that goes into a program — from a user typing, a file being read, or an API sending information. Output is what the program produces — text on screen, data saved to a file, a response sent to a browser.

Example

A calculator app takes two numbers as input, performs a calculation, and displays the result as output.

See it in context Learn how Input/Output fits into the bigger picture of how software actually works.

Read the Guide →