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

How has climate influenced the size of house sparrows? A. They have gradually become smaller in colder parts of the country. B. Their size has not changed i
what is a verb both past and present
Which emperor legalized Christianity in the Roman Empire? A. Constantine B. Caligula C. Octavian D. Hadrian
CAN ANYONE PLEASE HELP WITH MATH? please do number 4 part a and b you do not have to do part c thank u
The ratio of the number of male lions to female lions in the animal reserve is 21:20 if there are 123 lions in the animal reserve how many of the lions are fema
Write an expression for the number of feet in x inches. This question is based off of the picture
Which expression shows how to convert 24 gallons to cups? A. 24 ÷ 4 B. 24 × 16 C. 24 × 8 D. 24 + 16
22 fl oz=how many cups and fl oz
when was the french second republic set up and how were legislators elected
what is 60/100 in simplest form