herrDeng網內搜尋

自訂搜尋

Ads

2017年12月19日 星期二

ex11 請利用Blickly工具完成一段python程式碼




C code

int gcd_iteration(int x, int y) {
  int r;
  do{
    r= x % y;
    x = y;
    y = r;
  } while(r);
  return x;
}

42 則留言:

b10624024 提到...

x=z=0
y= input()
while z<=y :
x=x+1
z=z+x
print x

B10633101 吳松圻 提到...

r = None
x = None
y = None

"""Describe this function...
"""
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 456))

A10633011 邱軍霖 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

A10633016張貴棠 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 456))

A10633022 黃皓銘 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

A10633020 陳俐婷 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

B10633105 劉晉良 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

B10633105 劉晉良 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

B10633064 徐敏嫣 提到...

python程式碼:

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567)) 

B10633084 彭玟寧 提到...

python程式碼 :

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

b10633091 楊子安 提到...

gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)



print(gcd(567, 123))

b10633091 楊子安 提到...

gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)



print(gcd(567, 123))

b10633070陳鴻琪 提到...

var r, x, y;

/**
* Describe this function...
*/
function do_something(x, y) {
r = x % y;
return r == 0 ? y : do_something(y, r);
}


window.alert(do_something(123, 567));

b10633080黃主賜 提到...

var r, x, y;

/**
* Describe this function...
*/
function do_something(x, y) {
r = x % y;
return r == 0 ? y : do_something(y, r);
}


window.alert(do_something(123, 567));

b10633100 陳澔翰 提到...

var x, r, y;

/**
* Describe this function...
*/
function gcd2(x, y) {
r = x % y;
return r == 0 ? y : gcd2(y, r);
}


window.alert(gcd2(123, 456));

b10633076謝昀憲 提到...

var r, x, y;

/**
* Describe this function...
*/
function do_something(x, y) {
r = x % y;
return r == 0 ? y : do_something(y, r);
}


window.alert(do_something(123, 567));

b10633088 蘇暐智 提到...

r = None
x = None
y = None

"""Describe this function...
"""
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

b10633065 吳佳璇 提到...

gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)



print(gcd(567, 123))

B10633072柯柏宇 提到...

r = None
x = None
y = None

"""Describe this function...
"""
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, None))

D10623004 范振威 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 456))

b10633090 蘇暐庭 提到...

r = None
x = None
y = None

"""Describe this function...
"""
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

b10633103 游皓翔 提到...

gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)



print(gcd(567, 123))

b10633080黃主賜 提到...

var r, x, y;

/**
* Describe this function...
*/
function do_something(x, y) {
r = x % y;
return r == 0 ? y : do_something(y, r);
}


window.alert(do_something(123, 567));

B10433188 姜佩萱 提到...

var r, x, y;

/**
* Describe this function...
*/
function do_something(x, y) {
r = x % y;
return r == 0 ? y : do_something(y, r);
}


window.alert(do_something(123, 567));

B10433190 張文翰 提到...

var r, x, y;

/**
* Describe this function...
*/
function do_something(x, y) {
r = x % y;
return r == 0 ? y : do_something(y, r);
}


window.alert(do_something(123, 567));

b10533037張俊為 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

b10533032程泓瑋 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

b10533031沈宏儒 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

b10514033盧昱仁 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

b10533017古峻衛 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

B10537208楊蕊筑 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

B10533088葉俊江 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

B10633081 陳蕙祺 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

b10633159 徐芳瑀 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

B10533082 洪承楓 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

B10433088 葉凱文 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

b10333168 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)

B10441162 張芸瑄 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

B10533083徐士興 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

B10533093許永炎 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567))

B10533093許永炎 提到...

r = None
x = None
y = None

"""Describe this function...
"""
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 456))

b10533085羅偉辰 提到...

def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)


print(gcd(123, 567

Related Posts Plugin for WordPress, Blogger...

熱門文章