代码搜索:while

找到约 10,000 项符合「while」的源代码

代码结果 10,000
www.eeworm.com/read/131795/14126180

dat tc6.dat

第5章 循环结构程序设计 5.1 循环语句概述 [标签-循环语句概述] 求1~100的累计和. 根据已有的知识,可以用“1+2+……+100”来求解,但显然很繁琐.现在换个思路来考虑: 首先设置一个累计器sum,其初值为0,利用sum += n来计算(n依次取1、2、……、100),只要解决以下3个问题即可: (1)将n的初值置为1; (2) ...
www.eeworm.com/read/116901/14950155

java sum100.java

public class sum100 { public static void main(String args[]) { int sum,n; System.out.println("\n***for****"); sum=0; for(int i=1;i
www.eeworm.com/read/213563/15130478

java programcontrol.java

package ch01.section03; public class ProgramControl { public static void main(String[] args) { int i; int nSum = 0; //for循环 for (i = 0; i < 3; i++) { nSum++; Sy
www.eeworm.com/read/209207/15225809

bas whilwend.bas

10 REM WHILWEND.BAS -- Test WHILE-WEND Loops 20 PRINT "START" 30 LET X = 0 40 WHILE X < 25 50 PRINT "x is ";X 60 LET X = X + 1 70 LET Y = 0 80 WHILE Y < 2 90 PRINT "y is "; Y 100 LET Y = Y + 1
www.eeworm.com/read/209207/15225819

bas dowhile.bas

10 REM DOWHILE.BAS -- Test DO WHILE-LOOP 20 PRINT "START" 30 LET X = 0 40 DO WHILE X < 25 50 PRINT "x is ";X 60 LET X = X + 1 70 LET Y = 0 80 DO WHILE Y < 2 90 PRINT "y is "; Y 100 LET Y = Y + 1
www.eeworm.com/read/154392/5637415

jsp xhapp1.jsp

www.eeworm.com/read/112707/15478586

txt wdg_013.txt

1.3 控制流程语句 Turbo C2.0提供了丰富、灵活的控制流程语句, 主要有:条件语句、循环语 句和开关语句。下面将对这些语句作详细介绍。 1.3.1 条件语句 象其它语言一样Turbo C2.0也提供条件语句。在Turbo C2.0中条件语句的一 般形式为: if(表达式) 语句1;
www.eeworm.com/read/162614/5529395

c 20040203-1.c

/* PR/11658 The error message was quite mysterious for gcc up to 3.4.x */ struct a { int x; }; int bug_if(struct a a) { if (a) return 1; else return 0; } /* { dg-error "struct type" } */ int bug
www.eeworm.com/read/162614/5529406

c 20040203-2.c

/* PR/11658 The error message was quite mysterious for gcc up to 3.4.x */ union a { int x; }; int bug_if(union a a) { if (a) return 1; else return 0; } /* { dg-error "union type" } */ int bug_wh
www.eeworm.com/read/292340/8360631

txt keyword.txt

do else if and int then while