摘要:
##伪代码 Write "Enter the new base" Read newBase Write "Enter the number to be converted" Read decimalNumber Set quotient to 1 WHILE (quotient is not zer 阅读全文
posted @ 2022-10-06 14:44 20221301 阅读(47) 评论(0) 推荐(0)
|
|
|
|
摘要:
##伪代码 Write "Enter the new base" Read newBase Write "Enter the number to be converted" Read decimalNumber Set quotient to 1 WHILE (quotient is not zer 阅读全文
posted @ 2022-10-06 14:44 20221301 阅读(47) 评论(0) 推荐(0)
摘要:
##什么是欧几里得算法 欧几里得算法又称辗转相除法,是指用于计算两个非负整数a,b的最大公约数。应用领域有数学和计算机两个方面。计算公式gcd(a,b) = gcd(b,a mod b)。 算法说明: #include <stdio.h> int euclid(int i, int j); int 阅读全文
posted @ 2022-10-06 14:29 20221301 阅读(24) 评论(0) 推荐(0) |
|