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

describe two leading industries of Aguadulce and why they were important
Explain why external fertilization is a high-risk process
A mole is defined to be____particles of a substance.
Sarah and Maria made a telephone using two cans and a string. They pulled the string tight and Maria went out into the hallway. When Maria spoke into her can, S
Select the items that describe incentives.can be rewards or penaltiesinfluence future actionsencourage people to actcan be monetary or non-monetary
Nelson's hobby is tinkering with small appliances
How might a collision between Neptune and and Halley's Comet affect Neptune's orbit
All of the following will contribute to an increase in real GDP from year to year EXCEPT a. capital deepening. b. increases in imports. c. decreases in popul
Select the correct product (a+8)(b+3)
273737782 + 937382928