a02m28b
a02m28b a02m28b
  • 08-03-2017
  • Computers and Technology
contestada

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.

Respuesta :

padawan
padawan padawan
  • 09-03-2017
pseudo code here

int i;
for(i=2,i<=10;i++)
{
print 1/i;
}

i = 2;
while (i <= 10)
{
print 1/i;
i++;
}
Answer Link

Otras preguntas

Elodea uses _____________ to power its cellular processes. A) ATP B) ESP C) STP D) UPS
Which is bigger or are they equal? 37% or 3/7
If an X represents a replicated chromosome, how many chromatids of which type does it represent?
What are the solutions of the inequality? Graph the solutions. b – 4 > 4 Question 12 options: b > –8 b < –8 b > 8 b >0
Giovanni da Verrazano thought that a large lake he discovered in North America was?
how would cost benefit analysis be a useful tool to evaluate a government policy on a transit system​
Why were western powers interested in countries in the Middle East, like Iran and Saudi Arabia? A. Democratic nations felt threatened by Islamic nations. B.
Colonists who fought against british rule
_________ is the weakest type of fastener. Straight Snap Hook and eye
Where did the earliest recorded use of capital punishment take place?