Electronic Circuits - Electronic Tutorials - Electronic Hobby Projects - A Complete Electronic Resource Centre

C Language Programming Library Reference Guide

Products

Sitemap

Online
Calculators

Circuits (A-C)

Circuits (D-O)

Circuits (P-Z)

Tutorials


 
Google
 
Web Hobbyprojects.com

Statements - do

The do...while construct provides an iterative loop.

Syntax:
 
do statement... while( expression );
statement is executed repeatedly as long as expression is true. The test on expression takes place after each execution of statement.

Examples:
 
do {
  betty++;
  printf("%i",betty);
} while (betty<100);
Search
Custom Search

<<<  Back to C Language Library Reference Guide

<<<  Back to Electronics Tutorials