Ask Question

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;

+3
Answers (1)
  1. 25 March, 18:19
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers