1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Dmitriy789 [7]
3 years ago
6

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.
Computers and Technology
1 answer:
Elza [17]3 years ago
4 0
Pseudo code here

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

i = 2;
while (i <= 10)
{
print 1/i;
i++;
}
You might be interested in
Aisha designed a web site for her school FBLA club. Which item should Aisha consider for improved responsive design?
Alexeev081 [22]
A is the correct answer I studied it
3 0
3 years ago
Read 2 more answers
Earthquakes _____.
rosijanka [135]
<span>B: can be caused by volcanic eruptions</span>
7 0
3 years ago
Read 2 more answers
Which term refers to the science that specifies the design and arrangement of items you use so you interact with the items effic
sashaice [31]

Answer:

the ergonomics To prevent a laptop from being stolen, you can use a surge protector. False; To prevent laptops from being stolen, you can use a cable lock. What is a digital certificate?

6 0
2 years ago
Assume that the int variables i, j and n have been declared, and n has been initialized. Write code that causes a "triangle" of
makvit [3.9K]

Answer:

The code that will cause the triangle of  asterisks is given by;

for (i=1; i<=n; i++){

for (j=1; j<=i; j++)

cout << "*";

cout << "\n";

}

Explanation:

6 0
4 years ago
Cora is writing a program to make a motorcycle racing game. If Cora wants the speed of the motorcycle to appear on the screen wh
Alex787 [66]
The answer would be C
6 0
3 years ago
Read 2 more answers
Other questions:
  • Advantages of a personal area network
    5·1 answer
  • Write a statement that declares a prototype for a function add, which has two int parameters and returns an int .
    13·1 answer
  • Explain one way that wartime advances in such areas as computers
    10·1 answer
  • g c 24-hour time (also known in the U.S. as military time) is widely used around the world. Time is expressed as hours since mid
    7·1 answer
  • Explain any two computer technologies that has improved e commerce
    11·1 answer
  • HELP
    13·1 answer
  • What will be the output of the following code snippet? token = False while token : print("Hello")
    11·1 answer
  • Flowcharts allow you to more easily clarify among multiple potential solutions to a problem to see which solution is best.
    5·1 answer
  • Write a program that first reads in the name of an input file and then reads the input file using the file.readlines() method. T
    11·1 answer
  • Write two eaxmple of operating system​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!