/ ****************************************************************** * * Purpose: Program to demonstrate the 'while' statement. * Date: 20-Feb-94 * Author: M J Leslie. * ******************************************************************/ #include <stdio.h> main() { int i=1; /* Define an integer variable. */ /* * i <= 10 expression is evaluated. If TRUE the * block is executed. */ while (i <= 10) { printf ("i is %i\n", i); i++; } }
file: /Techref/language/ccpp/cref/EXAMPLES/while.c, 0KB, , updated: 1998/11/3 03:59, local time: 2024/11/15 00:43,
18.117.91.157:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/Techref/language/ccpp/cref/EXAMPLES/while.c"> language ccpp cref EXAMPLES while</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.