导航

2022年10月6日

摘要: ##伪代码 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)

摘要: ##什么是斐波那契数列 斐波那契数列(Fibonacci sequence),又称黄金分割数列,因数学家莱昂纳多·斐波那契以兔子繁殖为例子而引入,故又称为“兔子数列”,指的是这样一个数列:1、1、2、3、5、8、13、21、34、…… ##斐波那契数列的递归表达式 在数学上,斐波那契数列以如下被以递 阅读全文

posted @ 2022-10-06 14:08 20221301 阅读(76) 评论(0) 推荐(0)