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

solve the inequality r 4-2(r-14)>0
mayo runs m miles each day. De'Anthony runs twice as many miles is Mako. Altogether, they run 18 miles each day. How many miles does Mako run each day.
Based on the Venn diagram above that contrasts text messaging and phone calls, which choice is the BEST thesis statement? a.Though both are methods of communica
please answer this question
What logarithmic function represents the data in the table? x f(x) 216 3 1296 4 7776 5 Choices: f(x)=logx5 f(x)=6log
What is the area of the circle shown if the area of the shaded sector is approximately 7.5 cm2? (Points : 1) 45 cm2 75 cm2 90 cm2
is 10.05 greater than 10.005
suffix word that ends with or
Convert 4 quarts to 31 pints. Express each ratio as a fraction in simplest form.
What is one jewish nonreligious cultural characteristic (traditions, customs etc.)