代码搜索:while
找到约 10,000 项符合「while」的源代码
代码结果 10,000
www.eeworm.com/read/449530/7501309
c do_while.c
/* do_while.c -- exit condition loop */
#include
int main(void)
{
const int secret_code = 13;
int code_entered;
do
{
printf("To enter the triskaidekapho
www.eeworm.com/read/449530/7501329
c while1.c
/* while1.c -- watch your braces */
/* bad coding creates an infinite loop */
#include
int main(void)
{
int n = 0;
while (n < 3)
printf("n is %d\n", n);
www.eeworm.com/read/449530/7501335
c while2.c
/* while2.c -- watch your semicolons */
#include
int main(void)
{
int n = 0;
while (n++ < 3); /* line 7 */
printf("n is %d\n", n); /* line 8 */
prin
www.eeworm.com/read/449189/7517200
class sum_while.class
www.eeworm.com/read/449189/7517201
java sum_while.java
//【例2.8】 用while语句求累加和。
class Sum_while
{
public static void main(String args[])
{
int i=1,n=10,s=0;
while (i
www.eeworm.com/read/449189/7517215
class fib_while.class
www.eeworm.com/read/449189/7517216
java fib_while.java
//【例2.9】 计算Fibonacci序列。
public class Fib_while
{
public static void main(String args[])
{
final int MAX = 20;
int i=0,j=1,count=0;
while (count
www.eeworm.com/read/449189/7517231
java prime_while.java
public class Prime_while
{
public static void main(String args[])
{
final int MAX=100;
System.out.println("All primes in 2~"+MAX+" are: ");
System.out.print("\t2
www.eeworm.com/read/449189/7517232
class prime_while.class
www.eeworm.com/read/443325/7634584
m stucture_while.m
% stucture_while.m
% while循环结构示例
% 求浮点数eps的精度
EPS=1;
num=0;
while(1+EPS)>1
EPS = EPS/2;
num=num+1;
end
disp('eps的数值(浮点数的精度)为:')
num
EPS=EPS*2