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
Kruka [31]
3 years ago
9

e do loop differs from the while loop in that a. the while loop will always execute the body of the loop at least once b. the do

loop will always execute the body of the loop at least once c. the do loop will continue to loop while the condition in its while statement is false and the while loop will continue to loop while the condition in its while statement is true d. the while loop will continue to loop while the condition in its while statement is false and the do loop will continue to loop while the condition in its while statement is true e. None of these; there is no difference between the two types of loops
Computers and Technology
1 answer:
cluponka [151]3 years ago
6 0

Answer:

b. the do loop will always execute the body of the loop at least once

Explanation:

The do loop will always execute the body of the loop at least once becuase it is an exit loop, that means the condition is always checked at the end, where as while loop execute hte body of the loop zero times as it is an entry loop and the condition will be checked prior to the execution of body of the loop.

do loop structure is as shown below

do{

}while()

So it executes the block atleast once and then checks the condition

Hence, the do loop will always execute the body of the loop at least once.

You might be interested in
Choose the correct term to complete the sentence.
fgiga [73]

Answer:

Answer is Local

Explanation:

7 0
3 years ago
Read 2 more answers
4. Write an interactive program CountOddDigits that accepts an integer as its inputs and prints the number of even-valued digits
levacccp [35]

Answer:

Program :

number=int(input("Enter the number: "))#take the input from the user.

number1=number

count=0#take a variable for count.

while(number>0):#loop which check every number to be odd or not.

   value=number%10 #it is used to take the every number from integer value.

   number=int(number/10)#it is used to cut the number which is in the use.

   if(value%2!=0):#It is used to check the number to be odd.

       count=count+1#It is used to increase the value.

print("The number of Odd Digits in "+str(number1)+" is "+str(count))#It is used to print the count value of odd digit.

Output:

  • If the user inputs is '1234567890', it will prints "5".
  • If the user inputs is "8546587", it will prints "3".

Explanation:

  • The above program is in python language, which takes the integer value from the user.
  • Then The number will be distributed into many individual units with the help of a while loop.
  • The while loop runs when the number is greater than 0.
  • There is a two operation, one is used to take the number by the help of modulo operator because it gives the remainder.
  • The second operation is used to divide the number to let the number 0.
4 0
3 years ago
All websites with medical information should be considered credible.
larisa [96]
No, this is not true. WebMD is a great example asking you of simple symptoms that you may be facing and your results could present an apparent fatal disease. This constantly scares the population of netizens whenever they would want a quick diagnosis online through these medical information sites. The best solution to your symptoms is to visit your family doctor or a licensed physician who will give you proper diagnosis checking your vital signs and other related information. Do not always trust the internet and the information it gives you as a user you must take the information with discretion before reacting inappropriately. 
3 0
3 years ago
Read 2 more answers
What are some example of popular music for teenagers
Stells [14]

Answer: Hip Hop, Rap, Alternative, Pop Rock

Explanation:

8 0
3 years ago
Read 2 more answers
Which file extension takes less storage space?
anyanavicka [17]

I believe the answer would be the JPEG file extension.

4 0
3 years ago
Read 2 more answers
Other questions:
  • Up to 10 people is a good guideline for the size of your study group.
    15·1 answer
  • Why do local variables lose their values between calls to the function in which they are
    5·1 answer
  • Crashing almost always accelerates the schedule while increasing project risk, whereas fast tracking almost always accelerates t
    10·1 answer
  • Assume that the myname.txt file is currently closed. write the code segment that opens the file without erasing it, write anothe
    13·1 answer
  • If you’re trying to reduce your debt, which of these expenses should you consider cutting out or cutting back on first?
    5·2 answers
  • What format are a setups program file in before executed?
    12·1 answer
  • When Gina was 10, she swam in the ocean for the first time. She remembers the feeling of kicking her feet, slicing her arms thro
    12·1 answer
  • How can ICT be a tool in connecting all stakeholders in your community?
    5·1 answer
  • A type of user interface that features on- screen objects, such a menus and icons, manipulated by a mouse.
    7·1 answer
  • What are different sheet icons
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!