mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 21:02:50 +00:00
21 lines
253 B
R
21 lines
253 B
R
|
void printf (string fmt, ...) = #0;
|
||
|
void traceon (void) = #0;
|
||
|
|
||
|
int x, y;
|
||
|
|
||
|
int
|
||
|
gcd (int a, int b)
|
||
|
{
|
||
|
if (b == 0) return a;
|
||
|
else return gcd (b, a % b);
|
||
|
}
|
||
|
|
||
|
int
|
||
|
main (int argc, string *argv)
|
||
|
{
|
||
|
x = 130;
|
||
|
y = 120;
|
||
|
printf ("%d\n", gcd (x, y));
|
||
|
return 0;
|
||
|
}
|