/ ****************************************************************** * * 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/5 19:08,
18.117.102.248:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©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://linistepper.com/Techref/language/ccpp/cref/EXAMPLES/while.c"> language ccpp cref EXAMPLES while</A> |
Did you find what you needed? |