This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Built-in Functions / Programming / Flow Control /

Input

FilledSmallSquare Input[ ] interactively reads in one Mathematica expression.

FilledSmallSquare Input["prompt"] requests input, using the specified string as a prompt.

FilledSmallSquare Input returns the expression it read.

FilledSmallSquare The operation of Input may vary from one computer system to another. When a Mathematica front end is used, Input may work through a dialog box.

FilledSmallSquare When no front end is used, Input reads from standard input.

FilledSmallSquare If the standard input is a file, then Input returns EndOfFile if you try to read past the end of the file.

FilledSmallSquare On most systems, Input[ ] uses ? as a prompt.

FilledSmallSquare When Input is evaluated, Mathematica stops until the input has been read.

FilledSmallSquare See Section 2.9.20.

FilledSmallSquare See also: InputString, Read, Get, Dialog, ButtonBox.

FilledSmallSquare New in Version 1.