Thickmadam2321 Thickmadam2321
  • 25-01-2020
  • Computers and Technology
contestada

Given a floating-point variable fraction, write a statement that writes the value of fraction to standard output. Do not write anything else to standard output -- just the value of fraction.

Respuesta :

codiepienagoya codiepienagoya
  • 26-01-2020

Answer:

The statement to this question is "cout << fraction;".

Explanation:

In the given question it is declared, that a floating-point variable "fraction" is defined, which holds some value. To print this variable value in C++ program we use the print function, which is "cout". This function also used to print messages and values, in this question the print function uses the float variable "fraction", which prints variable value.

Answer Link

Otras preguntas

Four gallons of paint cost $49.44. Which equation can be used to find c, the cost per gallon?
how does geography affect where people live?
How many twelfths are there in 2/3 of 3/4 more than 1/3 of 3/8 ? I know the answer already, please show how you do it .
What is 60% as a fraction in simplest form
Attend to precision.write 1.024242424... as a fraction
for a button to fit through its buttonhole, the hole needs to be the size of the button diameter. What size buttonhole is needed for a button with a cIrcumferen
Determine the number of terms in the expression 6+3x
what hardened colonists' attitudes toward local american Indians in Virginia during the early 1600's
how does geography affect where people live?
6,300,000,000 = 6.3 x 1,000,000,000                    = 6.3 x 10 are they both in scientific notation ???