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

plz help me with social studies plz
1.Write this sentence as an equation.Do not solve it.Two times the difference of three times a number and seven is a number.7.B'Elanna Torres tries to combine
simplify your answer (n-1)(3n+4)
1. Why does the temperature decreases with increase in altitude?​
What is the slope of the linear function represented in the table?
What is the lengths of the marked portions?
solve for x, y, and z​
Which Roman structure has the largest curved ceiling of the ancient world?
Type the correct answer in the box. The table below represents the total cost of leasing a car at the end each month. Month 1 3 Cost $1,859 $2,577 $4,372 $5,808
i could use some help