rachelbrooks8670 rachelbrooks8670
  • 03-10-2019
  • Computers and Technology
contestada

What statement would you use to read a value from keyboard input into the variable cheeses?

Respuesta :

SerenaBochenek SerenaBochenek
  • 06-10-2019

Answer:

Statement to read input in C++.

cin>>cheeses;

Explanation:

To read a value from keyboard in C++, we use "cin>>variable;" statement.

This will read a value from the keyboard and store that value in the variable.

Before reading any value to a variable, first we need to declare a variable that can store the value.

Implementation in c++.

#include <bits/stdc++.h>

using namespace std;

int main()

{

int cheeses;

cin>>cheeses;

return 0;

}

Answer Link

Otras preguntas

"Summer Shower"By Emily DickinsonA Drop fell on the Apple Tree - Another - on the Roof - A Half a Dozen kissed the Eaves - And made the Gables laugh - A few wen
Question 1(Multiple Choice Worth 4 points) (08.02 HC) How many liters of 4.0 M NaOH solution will react with 0.30 liters 4.0 M H2SO4? H2SO4 + NaOH → Na2SO4 + H
How did the Long March enable Mao to achieve success in the civil war against the Nationalists?
The Constitution gives only _____ the power to make rules for governing the armed forces. the House the Senate military leaders Congress
What happened under the Marshall plan?
1.(8 ÷ 2) + (35÷7) whats the answer?​
PLEASE HELP!!!THANK YOUUU!!
All of the following are potential effects of clearing land except __________.
choose 2 correct answers!!!!!! thank you
What statement helps answer this question