代码搜索:do-while

找到约 169 项符合「do-while」的源代码

代码结果 169
www.eeworm.com/read/110432/15533655

c dowhile.c

/* Chapter 3 - Program 2 */ /* This is an example of a do-while loop */ main() { int i; i = 0; do { printf("The value of i is now %d\n"
www.eeworm.com/read/348439/11594033

htm ch10.htm

developer.com - Reference
www.eeworm.com/read/380309/2661320

txt 第五章练习2(用do-while做).txt

/*2、从键盘输入一个数,计算这个数的阶层 说明: 阶层 一个自然数从1到它本身所有数字的乘积 例如 (5的阶层)5!=5*4*3*2*1=120 提示: 用while、do……while、for语句三种方式完成。 使用循环让每个数相乘 使用一个变量保存每一次的乘积*/ #include void main() { int i=
www.eeworm.com/read/379227/9203980

jsp xhapp1.jsp

www.eeworm.com/read/378183/9244990

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/365107/9879234

txt 8.学c51的基础 8 《 控制流程语句 》.txt

======================================== 详细内容八:学C51的基础---- 控制流程语句 ======================================== 1.3 控制流程语句 Turbo C2.0提供了丰富、灵活的控制流程语句, 主要有:条件语句、循环语句和开关语句。下面将对这些语句作详细介绍。 1.
www.eeworm.com/read/457703/7319298

cpp ex0208.cpp

// ex0208.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include int main(int argc, char* argv[]) { int hSum=0; int hCout=1; int a; a=
www.eeworm.com/read/445911/7588170

html 09.html

循环语句 循环语句: var sum = 0; var i = 0; for(i=0; i
www.eeworm.com/read/197148/8026382

cpp help2.cpp

/* Project 3-2 An improved Help system that uses a a do-while to process a menu selection. */ #include using namespace std; int main() { char choice;
www.eeworm.com/read/487286/6518340

java sum.java

package ControlFlow; //分别用while,do-while和for语句实现累计求和 public class Sum { public static void main(String[] args) { System.out.println("**while statement**"); int n=100,sum=0; while(n>0){