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

What is the value of 4x to the third +4x if x is 4
Define "Common Sense"
Solve 13 + w/7= -18 (w/7 is a fraction)
important Document #2—Mayflower Compact Who: What: When: Where: Why? BONUS—Why is this different from the Magna Carta?
PLZ help me with this question
Find the gcf of 12,30,72
Can u guys help me with #1
Which statement correctly describes potassium iodide, KI? There is a one-to-one ratio of potassium ions to iodide ions. Potassium gains electrons and iodi
a math club has 40 members. the number of girls y is 6 less than the number of boys. How many members are boys x? how many members are girls y?
Most white men in the antebellum South could BEST be described as A) plantation owners. B) seafaring traders. C) merchants or shopkeepers. D) nonslaveholding