answersLogoWhite

0

while- It will wrok only if the condition is correct if not it wont excute the body of the loop

do-while:

In some cases we want that body of the loop and the condition may fails so the loop want to print so the do while loop first excute body of the loop and next it checks the condition it continues until the condition becomes false

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What are the differences between a trumpet and a flute?

flute is a woodwind instrument while trumpet is not


What are the differences between the moon and mercury?

mercury belong to planet while moon was not.


Which of the following describes a difference between comparisons and contrasts?

Comparisons focus on highlighting similarities between two or more things, while contrasts emphasize differences between them. Comparisons typically examine how things are alike, while contrasts explore how they are different.


What are the similarities and differences between a shark and a whale?

There are many similarities and differences between a shark and a whale. The similarities is that have a similar streamlined body structure but the differences are many including sharks are fish while whales are mammals, sharks have a vertical tail structure while whales have a horizontal one among others.


Differences between sharks and dolphins?

Dolphins breathe with lungs while sharks breathe with gills.


What were the sectional differences between the north and south?

the north banned slavery while the south allowed it


What are differences between different cultural symbols?

there are a lot of differences between cultural symbols like for example, Hindus and Kurdistan Indians worship thousands of gods while Kurds only worship one.


What are the differences between research and problem solving?

The are slight differences between research and problem solving. Both entail investigations to establish facts. But problem solving requires facts that amount to solutions while research may be just findings.


List out the differences between while and dowhile statement?

The do ..while loop is executed at least once, whereas the while loop may not be executed even once.


What are the differences between mushroom and green plant?

The differences are that: 1.Plants make their own food while mushroom does not.


What are the two differences between copper and chlorine?

Copper is a metal, while chlorine is a non-metal. Copper is a conductor of electricity, while chlorine is not.


What means Differences between engineering and engineer?

Engineering is a verb while engineer is the one who is doing engineering.