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
nevsk [136]
3 years ago
6

What’s the difference between an entry-condition loop and an exit-condition loop? Which kind is each of the C loops? Provide a d

etailed response with examples
Computers and Technology
1 answer:
egoroff_w [7]3 years ago
7 0

Explanation:

The difference between entry condition loop is and exit - condition loop is that the entry condition loops first checks the condition to enter the loop body if the condition true then the loop body is executed otherwise loop body is not executed while the exit-condition loops first executes the loop body and then the condition for the loop is checked.

There are three loops in C that are as following:-

  1. For
  2. While
  3. Do While

Among these three loops While and For loops are entry condition loops and Do While loop is exit condition loop.

For example:-

for(int i=0;i<10;i++)

{

    printf("%s","John Doe\n");

}

If the initial value of i should have been 10 then loop body didn't had executed.

int i=0;

while(i<4)

   {

       printf("%s","John Doe\n");

   }

If you try to run this while loop nothing will print on the screen because the condition is false.So the compiler will not enter the loop body and will skip over it.

int i=5;

   do{

       printf("%s","John Doe\n");

   }while(i<4);

Even if the condition is false.You will see that the John doe have been printed one time on the screen because first the body is executed then the condition is checked.

You might be interested in
56- What is the term used when you press and hold the left mouse key and more the mouse
elena55 [62]

Answer:

i'd say it's dragging, but i'm not 100% sure

Explanation:

8 0
2 years ago
Which of the following cannot be created using Word software?
Arturiano [62]
3-database of new clients
7 0
3 years ago
IF ANYONE ANSWERS YOUR QUESTION WITH SOMETHING LIKE THIS:
vova2212 [387]

Answer:Thank you very much! A user names SShalomeea has been hacking today. Anyone with that photo is a spammer.

4 0
3 years ago
Read 2 more answers
What are the primary functions of motor oil? a. Reduce friction and prevent wear b. Keep engine surfaces clean c. Remove heat to
ryzh [129]

The answer is E: all of the above.

7 0
3 years ago
How do you know if someone read your message on messenger?
kherson [118]
It would say that the person read the message on the picture of the person. Example if you texted your friend at 7.00 and it said that the person read at 7.15. got it now?
3 0
3 years ago
Other questions:
  • Which of these is a preferred method for
    14·2 answers
  • Explain in detail what it means to synchronize computers and mobile devices. include at least two strategies for keeping your fi
    7·1 answer
  • Given the following business scenario, create a Crow's Foot ERD using a specialization hierarchy if appropriate. Granite Sales C
    12·1 answer
  • Write a Python program to do the following: (a)Use a for loop and a random integer generator to generate 5 random integers in 1
    10·1 answer
  • How to get the absolute value in coding begginners?
    13·2 answers
  • who will follow me on tiktok and like all my videos? if you do ill give branlist and give u a shoutout and you can enter my big
    15·1 answer
  • One way to use contiguous allocation of the disk and not suffer from holes is to compact the disk every time a file is removed.
    13·1 answer
  • 30 Points!!
    13·2 answers
  • Which graphic file format would you choose if you needed to make an animated graphic for a website?
    5·1 answer
  • Once you select a theme, you__________ change the theme’s individual elements independently of each other.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!