• Call Us: +91 9437911966
  • Email Us: info@studentstutorial.com
  • Home
  • C Examples
  • Server Side
    • PHP
    • Java
    • CodeIgniter
    • Laravel
    • JSP
    • JDBC
  • Frontend
    • HTML
    • CSS
    • Javascript
    • jQuery
    • AJAX
    • FPDF
    • TCPDF
  • APP & DB
    • Android
    • Cordova
    • SQL
    • Oracle
  • Project
C Tutorial C Introduction C Characteristic C Comments C Operator C Assign Operator C Arithmetic Oper.. C Logical Operator C Modulus Operator C Variable C Initialise Variable C Print F C Translators C Programming C Control Flow C If Else Statement C Nested If Else C Loops C While Loops C For Loops C Do While C Nested Loops

C Do- while

  • Students Tutorial
  • 08 jun 2020
   

In implementation when we are required to repeat the statement block at least once then go for a do-while loop.

When we are working with a do-while loop, a past checking process occurs i.e. after execution of statement block, condition part is executed.

When we are working with a do-while loop, it repeats in clock direction.

Syntax:

Assignment 1;
Assignment;

Do

{

	Statement 1;

	Statement 2;

	Statement 3;

	   - - --

		- - - -

		Inc /dec;
} 

  While (condition);
	

According to syntax, semicolons must be required at the end of the body.

Student Tutorial is a online tutorial for web design and development. Here you can find easy example and explanation for each tutorial.
Copyright © 2016-2025 Student Tutorial

Server Side

  • PHP
  • Java
  • CodeIgniter
  • Laravel
  • JSP
  • JDBC

Frontend

  • HTML
  • CSS
  • Javascript
  • jQuery
  • AJAX
  • FPDF

App & Database

  • Android
  • Cordova
  • SQL
  • Oracle