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

The theater student talks about a type of theater from Japan called ___________. Shakespearean Banraku Afikpo Kabuki
What was the key feature of European renaissance culture
HELP ME ASAP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!What were some of
Frannie is the head of the Human Resources department at her company. During the course of a day she speaks with many different people at different companies to
The idea that the universe began from a single point and expanded to its current size explains a large number of observations, including those in the table belo
An open wound in which tissue is separated from the body
(2x^4-3x^2+4x-9)÷(x+2)
What is the mean absolute deviation of the data set? {12, 10, 10, 8, 6, 7, 7, 12} 1 2 6 9
The riskiest sexual activity for contracting hiv is
should aromatic hydrocarbons react similarly with cyclic alkenes