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

70-q-q-2q=80 We'll this is confusing
The first land battle of the civil war took place near ________, Virginia, on july _ _, 18_ _At this battle, the union army ___________ the confederate army.wha
The sum of two numbers is 44.The larger number is 20 more than the smaller number. What are the numbers?
70-q-q-2q=80 We'll this is confusing
Solve for y.8^3-3y=256^4y
you are planting a rectangle garden. it is 5 feet longer than 3 times its width. the area of the garden is 250 feet. find the dimensions
genes are carried from parents to offspring on structures called
estimate for 412*5.904/0.195any one knw the estimate for this and how to work it out
Aside absorbing water and nutrients, what other functions do the roots serve?
How many people could read in France in 2000, 2001, 2002, 2013?