Seudónimo Seudónimo
  • 01-10-2021
  • Computers and Technology
contestada

To output age for the user which of the following you need to use?

A. int age;
B. cin>>age;
C. cout<<“age”;
D. cout<<“age”<

To output age for the user which of the following you need to use A int age B cingtgtage C coutltltage D coutltltagelt class=

Respuesta :

tsanger1992 tsanger1992
  • 03-10-2021

Answer:

D

Explanation:

A is declaring a variable

B is getting input from the user and storing it in variable age

C is outputting the word "age" to the screen

D is outputting the word "age" to the screen and then outputting the value of the age variable immediately after which is correct.

Answer Link

Otras preguntas

In Journey to the Center of the Earth Chapters 19-21 Why was Harry upset at the end of the chapter? A. He thought his uncle was leaving him B. He thought Hans w
Plz HELP,which choice is it
What is the result of subtracting the second equation from the first? 2 x + 7 y = − 8 2 x − 5 y = − 1 2x
The area of a rectangle is 28 square meters. The length is 7 meters. What is the width of the rectangle? meters
LOTS OF POINTS The lengths of the sides of a triangle are in the extended ratio 8 ​: 9 ​: 10. The perimeter of the triangle is 81 cm. What are the lengths of t
What did President Roosevelt do to show he was favorable to women and blacks during the Great Depression? A) He placed a number of them in his cabinet. B) He be
Which statement about printing is false?
5= 10x - 5y what’s the slope-intercept
Alex owes his father $100. His father pays him $12.50 an hour to work at their family store. The function d=100-12.5h represents the amount of debt d Alex has.
Find the product. Input your answer, 3 x7/8