gcd.h
来自「一个关于密码算法RSA的实现程序」· C头文件 代码 · 共 13 行
H
13 行
//计算最大公约数(the greatest common divisor )
#include <math.h>
int computgcd(int first,int second)
{
int gcd;
while(first>0)
{
gcd=first;
first=second%first;
second=gcd;
}
return gcd;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?