Ask Question
11 September, 00:37

Using a for loop, print the decimal equivalents of ½, 1/3, ¼, ... 1/10. Also, using a while loop, print the decimal equivalents of ½, 1/3, ¼, ... 1/10.

+4
Answers (1)
  1. 11 September, 00:40
    0
    Pseudo code here

    int i;

    for (i=2, i<=10; i++)

    {

    print 1/i;

    }

    i = 2;

    while (i < = 10)

    {

    print 1/i;

    i++;

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Using a for loop, print the decimal equivalents of ½, 1/3, ¼, ... 1/10. Also, using a while loop, print the decimal equivalents of ½, 1/3, ...” 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