代码搜索:while
找到约 10,000 项符合「while」的源代码
代码结果 10,000
www.eeworm.com/read/158297/11627002
m multell.m
function y = multell(p,M,a,b,n);
% This function prints the Mth multiple of p on the elliptic
% curve with coefficients a and b mod n.
z1=M;
y=[inf inf];
while (z1 ~=0),
while (mod(z1,2) ==0),
www.eeworm.com/read/158297/11627006
m powermod.m
function y = powermod(a,z,n)
% This function calculates y = a^z mod n
% If a is a matrix, it calculates a(j,k)^z mod for every element in a
[ax,ay]=size(a);
% If a is negative, put it back to betwee
www.eeworm.com/read/158297/11627080
m primitiveroot.m
function g = primitiveroot(n);
% This function finds a primitive root for n
% Handle Trivial case
g=0;
if (n==2),
g=1;
else
phi=eulerphi(n);
f=factor(phi);
fln=length(f);
y=2;
while
www.eeworm.com/read/158241/11630916
m ex0510.m
%Ex0510 用continue终止while循环
sum=2;ss=0;
for n=3:100
for m=2:fix(sqrt(n))
if mod(n,m)==0
ss=1;%能被整除就用ss为1表示
break;%能被整除就跳出判断的循环
else
www.eeworm.com/read/261658/11631108
c main.c
/************************************************************/
/* PROJECT NAME: AtoD */
/* Project: LPC2100 Training course */
/* Enginee
www.eeworm.com/read/158240/11631129
m ex3_11.m
sum=0;
cnt=0;
val=input('Enter a number (end in 0):');
while (val~=0)
sum=sum+val;
cnt=cnt+1;
val=input('Enter a number (end in 0):');
end
if (cnt > 0)
sum
mean=sum/cn
www.eeworm.com/read/261654/11631682
c uart.c
/*********************************************************************
*
* UART access routines for C18 and C30
*
*********************************************************************
*
www.eeworm.com/read/158173/11638984
c utils.c
#include "def.h"
extern int SerialRxReady(void);
extern char SerialRxKey(void);
unsigned short ntohs(unsigned short s)
{
return (s >> 8) | (s
www.eeworm.com/read/347738/11639331
c 12_2.c
//并口多机通信主要程序代码:
//主机:
#include
……
sbit hand1=P2^1; //与U1单片机的握手信号
sbit hand2=P2^2; //与U2单片机的握手信号
unsigned char idata group1[10];
unsigned char idata group2[10];
unsigned int