摘要:
#include <stdio.h> unsigned int Loop_Fibonacci(unsigned int n); unsigned int Recu_Fibonacci(unsigned int n); int main() { //给定正整数n(项数),返回响应的斐波那契数值 //斐 阅读全文
摘要:
#include <stdio.h> int to_binary(int a); int main() { //求一个整数(十进制)的二进制(循环语句版) int a = 1234; int result; int shang; int size; int re; int b = a; int c 阅读全文
摘要:
#include <stdio.h> long fact(int a); //计算指定参数的阶乘 int main() { //用循环求a的阶乘(注意输入参数不要超过12,会超过long的范围) int a = 4; long resutl = 1; for (int i = 1; i <= a; 阅读全文