answersLogoWhite

0

For while loop you have to define conditions for the loop in loop's body. In, "for loop" case it's more natural and comportable. For loop is good for numeric simulations in other words when you are using only numbers. Loop while is very good for symbolic conditions, for instance, to check the condition that char1 == char2;

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the difference between a programming language and natural language?

A programming language is a formalized way to communicate instructions to a computer, while natural language is the way humans communicate with each other. Programming languages are designed for specific tasks and have strict rules, while natural languages are more flexible and used for everyday communication.


Difference between abacus and modern computer?

abacus is an ancient calculating tools while an computer is a modern tools.


What is the difference between passive language and active language?

Passive language is when the subject of the sentence is being acted upon, while active language is when the subject is performing the action.


What is the difference between a computer and an operating system?

a computer is a machine for performing caculations automatically while an operating system is a software that contrls the execution of a computer


What is the difference between computer structure and computer function?

i think computer structure is just a drawing of computer in a postal or book while computer function is just like the purpose of a computer.


What is difference between language and linguistics?

linguistics is the scientific study of human language while language is a different thing which tells us to speak , read or to write: in simple words language is a way of communication between persons.


Is the difference between decidable and recognizable languages in theoretical computer science clear to you?

Yes, the difference between decidable and recognizable languages in theoretical computer science is clear to me. Decidable languages can be recognized by a Turing machine that always halts and gives a definite answer, while recognizable languages can be recognized by a Turing machine that may not always halt, but will give a positive answer for strings in the language.


What is the difference between microprocessor and computer?

a microprocessor is a small unit with memory inside the system unit while a computer is the combination of a monitor and a system unit


What is the difference between minoans and mycenaecn?

The Mycenaeans spoke a version of Greek language, written in a syllabary called Linear B while the Minoan language is unknown.


What is difference between typewriter computer?

One is only useful for writing papers and filling forms while computers are anything that "computes" such as a calculator or a desktop computer


Difference between instant messaging and text messaging?

Text messaging is on your ohone while instant messaging is in your computer (AIM)


What are the differences between a business letter and a private letter?

The difference between a business letter and a private letter is the type of language used. In a business letter, more formal language is used, while in a private letter, the language is more relaxed.