代码搜索:do-while
找到约 169 项符合「do-while」的源代码
代码结果 169
www.eeworm.com/read/262924/4307946
java dowhileop.java
//DoWhileOp.java
//用do-while语句计算10的阶乘
public class DoWhileOp
{
public static void main(String args[])
{
int n=10;
long result=1;
do
result*=n--;
while(n>=1);
System.out.print
www.eeworm.com/read/17110/719072
c ex1.c
#include //头文件
void main() //主函数
{
int i,s; //声明变量
i=100;s=0; //初始化
do //do-while循环,求和
{
s=s+i; //s累加
i=i-1; //循环次数减1
}while
www.eeworm.com/read/25215/846172
c 13-4-2.c
#include //头文件
void main() //主函数
{
int i=100,sum=0; //初始化
do //do-while循环
{
sum=sum+i; //表达式语句
i--;
}while(i>0); //表达式
printf("sum=%d\n"
www.eeworm.com/read/366702/2882950
c ssa-pre-16.c
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats -std=c99" } */
int foo(int k, int *x)
{
int j=0;
int res = 0;
/* We should pull res = *x all the way out of the do-while */
www.eeworm.com/read/119338/6090862
java ex_3_3_15.java
/*
*文件名 ex_3_3_15.java
*说 明:do-while循环应用举例
* 牛顿迭代法求正数平方根
*/
import java.io.*;
class ex_3_3_15
{
public static void main(String args[])
throws IOException
{
// 精确度要求
fina
www.eeworm.com/read/8474/148320
c ex23.c
//实例23:用do-while语句控制P0口8位LED流水点亮
#include //包含单片机寄存器的头文件
/****************************************
函数功能:延时约60ms (3*100*200=60000μs)
****************************************/
void delay6
www.eeworm.com/read/12173/239847
c ex23.c
//实例23:用do-while语句控制P0口8位LED流水点亮
#include //包含单片机寄存器的头文件
/****************************************
函数功能:延时约60ms (3*100*200=60000μs)
****************************************/
void delay6
www.eeworm.com/read/17194/722399
51
//实例23:用do-while语句控制P0口8位LED流水点亮
#include //包含单片机寄存器的头文件
/****************************************
函数功能:延时约60ms (3*100*200=60000μs)
****************************************/
void delay6
www.eeworm.com/read/25885/951594
51
//实例23:用do-while语句控制P0口8位LED流水点亮
#include //包含单片机寄存器的头文件
/****************************************
函数功能:延时约60ms (3*100*200=60000μs)
****************************************/
void delay6