Ask Question
10 October, 10:08

You want the user to enter the length, width, and height from the keyboard. Which cin statement is correctly written?

A.

cin << length, width, height;

B.

cin. get (length, width, height);

C.

cin >> length >> width >> height;

D.

cin >> length, width, height;

+5
Answers (1)
  1. 10 October, 10:14
    0
    Correct option is (C) that is cin >> length >> width >> height;.

    Explanation:

    In the C++, for reading the input we use "cin>>" operator. If we have to read multiple input in the same line we can use this as "cin>>x>>y>>z; ". it will read multiple input in the same line. "Cout<>" operator. To read multiple input we can separate variables

    by ",".

    Example:

    cin>>x>>y>>z;

    it will read three value in variables "x","y" and "z" respectively.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “You want the user to enter the length, width, and height from the keyboard. Which cin statement is correctly written? A. cin > length >> ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers