gcd.c
来自「压缩文件中是Error Correction Coding - Mathemat」· C语言 代码 · 共 19 行
C
19 行
int gcd(int a, int b)/* A simple example of the Euclidean algorithm: *//* Compute g = (a,b), where a>0 and b>0 *//* (A better function would include sign checking) *//* Copyright 2004 by Todd K. Moon Permission is granted to use this program/data for educational/research only*/{ int g; while(b) { g = b; b = a % b; /* compute remainder of a/b */ a = g; } return a;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?