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

Which of the following was one of the differences between the economy of the New England colonies and the economy of the Southern colonies?
25 - 4x = 15 - 3x + 10 - x how to solve
I'm 1854 senator Stephen Douglas of Illinois introduced the Kansas Nebraska act which would allow the territories of Kansas and Nebraska to decide
Match the individuals or groups to their actions related to the Tiananmen Square massacre
create 3 story problems that involve the order of operations
59, 52, 39, 37, 56, 48, 53, 67, 33, 45, 34, 51, What is the percentage of these professors who are younger than 51 ?
What was the conclusion reached at the Annapolis Convention?
Consider the linear expression and a first step of simplification shown below.
The density of silver is 10.5 g/cm. Find the volume of a silver bar if it’s mass is 950 g.
Solve the equation: 2 * x-3 = 25, x =? (digit answer):