Toggle navigation
Courses
Questions
Tags
Users
Exercise 最大公因數
6
like
0
dislike
849
views
給定兩個數字,請得出它們的最大公因數
中文
最大公因數
迴圈
[Normal]
Essay (Open question)
-
asked
Oct 29, 2017
in
程式設計(一)
by
semicolon
(
5.2k
points)
ID: 29675 -
Available when:
Unlimited
-
Due to:
Unlimited
|
849
views
comment
Please
log in
or
register
to add a comment.
1
Answer
0
like
0
dislike
Hidden content!#include ***** ** *** * *
#include ** * * * *
int GCD(int x,int y);
int main()
{
* * * ** * * * n1 , n2;
** * * * * * ** * *** * * * * * %d", &n1 , &n2);
* * * * * * ** * ** * *** *** * ** ** ** * * * * * * * * * * * ***** * , n2));
** * ** * * * * * *** ** * 0;
}
int GCD(int x,int y)
{
if(x==0)