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

what is an important component of ATP that is needed to transfer and release energy directly?
why were the Native Americans mad at the British
Which sentence contains a verb in the simple past tense? A. She has obeyed her father. B. She obeys her father. C. She obeyed her father. D. She had obeyed her
In his speech Roosevelt made no mention of Germany and the war in Europe. Why?
predict the miles traveled in 5 hours at a rate of 189 miles in 3 hours
The legs of an isosceles triangle have lengths x+1 and -x+7 . The base has length 3x-3. What is the length of the base? a. 6 b. 3 c. 4 d. cannot be determined
Traveling over land,what might be a good route
write a decimal that is 1/10 of 3.0.
which of these is a personal tragedy Edgar Allan Poe experienced? a. his brother was killed in the war b. his young wife died of tuberculosis c. his father wa
In The Communist Manifesto, Karl Marx hypothesized that capitalism would fail if workers.?