greatest common divisor
題目說明
請先輸入兩正整數,後輸出兩數的最大公因數
若小於0則輸出wrong!
並結束程式
輸入限制: 數字
輸入
兩正整數
輸出
最大公因數
sample input1
30 10
sample output1
10
sample input2
-1 30
sample output2
wrong!
請先輸入兩正整數,後輸出兩數的最大公因數
若小於0則輸出wrong!
並結束程式
兩正整數
最大公因數
30 10
10
-1 30
wrong!
Comments