Write a statement that reads an integer value from standard input into val. Assume that val has already been declared as an int variable.

LANGUAGE: C++

CHALLENGE:

Write a statement  that reads an integer value from standard input into val. Assume that val has already been declared as an int variable.

SOLUTION:

cin >> val;