meg4ri9dgeekyhele
meg4ri9dgeekyhele meg4ri9dgeekyhele
  • 29-09-2016
  • Computers and Technology
contestada

using a for loop, write a program that prints out the decimal equivalents of 1/2, 1/3, 1/4,..., 1/10.

Respuesta :

Wrighty
Wrighty Wrighty
  • 29-09-2016
In python:

##Specifies the range that the variable 'number' should change within
for number in range(2,10):
##Prints the decimal equivalent of each fraction
    print(1 / number)
Answer Link

Otras preguntas

Identify the type of chemical reaction. NH3 + H2ONH4OH decomposition exchange reversible synthesis
Which does not occur during translation? tRNA pairs with complementary mRNA. A peptide bond is created between amino acids. DNA is transcribed into a complement
What is the money summary method.
The beginning of the Reformation began with this Medieval monk who broke from the Church. a. Martin Luther b. Frederick c. Johannes Tetzel d. Ulrich Zwingli
Mark the phrase if it describes one of the reforms the National Convention made to improve the lives of ordinary French people. A. free primary schooling for al
what is 5 6/7 - 1 1/2
Only seven of his plays survive, and many people consider his Oedipus Rex the greatest Greek tragedy. A. Aeschylus B. Sophocles C. Euripides D. Aristophanes
voice in literary nonfiction refers to?
Which statement describes how the outcome of the Battle of Midway impacted World War II? | The U.S. victory allowed the navy to advance across the Pacific. | Th
Communsim encourages religious freedom/ True False