previous | start | next

Input and Output (Syntax 2.4: Input Statement)

Syntax 2.4 : Input Statement

cin >> variable1 >> variable2 >> ... >> variablen;
Example:
cin >> pennies;
cin >> first >> middle >> last;
Purpose: Read the value for one or more variables in from the console.

 



previous | start | next