User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







cpp:control_structures:do

do

  Syntax 
  do instruction while ( condition );

cpp Sourcecode Example

#include <iostream> /* including standard library */
 
using namespace std;
 
int main( void ) {
int i;
 
    do
        cout << "Hello World no " << i << endl;
    while (i++);
 
return 0;
}
  output
  Hello World no 0
  Hello World no 1
  Hello World no 2
  Hello World no 3
  Hello World no 4
  Hello World no ...
  Hello World no 1579
  
  and so on

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
cpp/control_structures/do.txt · Last modified: 2024/02/16 01:04 (external edit)

Impressum Datenschutz