Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript Site
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


Do / While example
 

 

Description

an example of a do / while example .

Code

//do while example

#include<stdio.h>

int main(void)
{

const int SECRET_CODE = 15;
int code;

do{
printf("Type the secret code number to enter.\n");
scanf("%d", &code);
}while(code!=SECRET_CODE);
printf("Well done , you can now enter\n");

return 0;
}

Information

tested using Visual C++ 6

 

 
 

 

Download

dowhile1.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
system uptime(PHP)
bios date in windows 98(vb)
displays IRQ numbers and their statuses(VBScript)
get windows version(VB)
Current date and time(C Sharp)
select box example(HTML)
strip out certain tags(php)
total no of colors(VB)

    




Copyright © 2003 by programmershelp.co.uk