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 characteristics do cell membranes and cell walls have in common?
where would old cell organelles be broken down to be recycled in the cell
Tomorrow, the mayor will announce her plans "for the new committee." what type of phrase is this?
6 [ 4 × ( 72 - 63 ) ÷ 3 ]
what are particles of carbon that enter the air when wood or coal are burned?
Find the greatest number you can add to 4315 without having to regroup how did you find the number
what's longer east or west
The most common procedures today on the digestive system are the gastric bypass and the lap- band. There has been some controversy over the dangers of these pro
In an equation what symbol would indicate a mixture a. (g) b. (s) c (aq) d. (l) and explain plz
Which sentence does NOT correctly fix this run-on sentence? The car skidded luckily no one was near it. a. The car skidded, but luckily no one was near it. b. T