Monday, August 2, 2010

Example of C++ Do While

Codes:

#include
#include
void main()
{
Clrscr();
int i = 0;
do
{
printf("%d",i++);
} while (i < 3);
}

Output:
1 2 3

No comments:

Post a Comment