1.非递归方法实现#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>int Factor(int n){int result=1;for(int i=1; i<=n; i++){result *= i;}ret...
#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>void PrintNum( int num ) {if( num>9){ PrintNum(num/10); }printf("%d",num%10);}...
1.递归方法实现#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>int Fib(int n){ if(n==1){ return 1;} if(n==2){ return 1;} return Fib(n-1)...
思路: 60/8 = (60-32)/8 + 4 = (60-32-16)/8 + 2 + 4 = 1 + 2 + 4 = 7