C言語の最大公約数

する#include <stdio.hの>
int型のmain()
{
int型getmax(int型のx、int型のY)。
A、B、Cのint;
scanf関数( "%D%dの"、&、&B)。
C = getmax(B)
printf( "%d個"、C)。
}
INT getmax(int型のx、int型のY)
{
int型のT。
(!(のx%のY)= 0)、一方
{
T = X%のY、
X = Y。
Y = T。
}
リターン(Y)。
}

おすすめ

転載: www.cnblogs.com/3w1z3/p/10930128.html
おすすめ