📄 gcd.c
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -