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

When forming a chemical bond only the ________ electrons participate in the bonding process. a. ionized b. inner shell c. outer shell d. ionic or covalent?
Name three ways chemists keep track of amounts of substances
how do you find the greater rate of change in a problem or table?
Calculate the area of the shaded sector. 11.73 11.2 11.4 11.83
I need help please and explain me thanks
R(x) = 20x − 0.1x2, C(x) = 4x + 2
Marco borrowed $150 from his brother he has paid back 30% so far how much money does Marcus still owe his brother
(Kind of random) Can someone please help me decide what to paint?
What is the perimeter of the rectangle? A. 16 units B. 18 units C. 20 units D. 34 units
Which of the mediterranean countries is landloked?