my implementation~~

scorpio (scorpio)
void main(int argc, char* argv[])
{
int i, tmp = 1, lcm, lcm2, len = 10;
int *data = new int[len];

for(i = 0; i < len; i++)
data[i] = XXX; // initialize data

for(i = 0; i < len; i ++){
lcm = lcm2 = data[i];

while((lcm / tmp) * tmp != lcm){
lcm += lcm2;
}

tmp = lcm;
}

printf("%d\n", lcm);
}
(#129541@0)
2001-7-12 -05:00

回到话题: 请问最小公被数的英语是什么?如果能有源大妈就更好拉。thanks~~

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT杂谈

URL:   
http://www.rolia.net/zh/post.php?f=0&p=129541