Securing Higher Grades Costing Your Pocket? Book Your Coursework Help at The Lowest Price Now!

  • +1-617-874-1011 (US)
  • +44-117-230-1145 (UK)
Online Customer Service

The do while loop

The syntax of Do-While Loop is:

do
{
this;
and this;
this too;
…..
etc;
}


while (if the condition is true)

In Do-While Loop the statements are evaluated first and then the conditions are checked.

In While Loop if the condition fails to satisfy then the statements will not be executed however in Do-While Loop, it will be evaluated once even if the condition fails.

/* Program to illustrate the do while loop*/

#include < stdio.h >
void main()
{
char inchar;
do
{
printf(“Input Y or N”);
scanf(“%c”, &inchar);
}
while(inchar!=’y’ && inchar != ‘n’);

if(inchar==’y’)
printf(“you pressed u\n”);
else
printf(“You pressed n\n”);
}


homework help with do while loop

Topics in C Programming

PLACE ORDER NOW
captcha image 

Resources

  •   24 x 7 Availability.
  •   Trained and Certified Experts.
  •   Deadline Guaranteed.
  •   Plagiarism Free.
  •   Privacy Guaranteed.
  •   Free download.
  •   Online help for all project.
  • Need Assignment Help

Testimonial

Urgenthomework helped me with finance homework problems and taught math portion of my course as well. Initially, I used a tutor that taught me math course I felt that as if I was not getting the help I needed. With the help of Urgenthomework, I got precisely where I was weak:
Read More

Tap to Chat
Get Instant Assignment Help
Tap to Chat
Get Instant Assignment Help