Ask Question
20 April, 22:16

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

+3
Answers (1)
  1. 20 April, 22:30
    0
    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)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Using a for loop, write a program that prints out the decimal equivalents of 1/2, 1/3, 1/4, ..., 1/10. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers