Ask Question
13 July, 14:38

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;

+4
Answers (1)
  1. 13 July, 16:29
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers