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

Kim estimates that the faucet in her kitchen drips at a rate for 1 drop every 2 seconds. Erik wants to klnow how many times the faucet drips in a week.
a person who studies word origins and meanings would most likely be a
How many eights are there in 6 1/2
Round 13 513 to the nearest thousand
Solve the system of equations.3x+3y+6z=33x+2y+6z=74x+4y+7z=4
Given the inequalities y > 5x-8 and y >3x+4, find the point that satisfies neither inequalities
Kim estimates that the faucet in her kitchen drips at a rate for 1 drop every 2 seconds. Erik wants to klnow how many times the faucet drips in a week.
Given the inequalities y > 5x-8 and y >3x+4, find the point that satisfies neither inequalities
name 2 sound devices and what type they are from the song Where Is The Love by the Black Eyed Peas.
Solve the system of equations.3x+3y+6z=33x+2y+6z=74x+4y+7z=4