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 factors contributed to the rise of Italian city-states?
What is the difference between manumission and emancipation?
3t+10=16 what is the answer
Read the five points highlighted above from Wilson’s Fourteen Points. Choose the point you think is the most important to the goals Wilson outlines in his speec
Examples, facts, statistics, and description may be used to support an author's (3 points) language claim delivery presentation
What is equivalent to12/18
_____ are used to take money directly from your account. Charge cards Cash cards Credit cards Debit cards
Which part of the female reproductive system produces ova? ovary fallopian tubes uterus vagina vulva
The soccer team voted on what they wanted to eat. There are 20 members on the team. Six members voted for pizza, 10 voted for chicken, and the rest voted for ho
What was the main reason for the popularity of The Canterbury Tales in medieval England?