斐波那契数列
public class temp1 {
public static void main(String[] args) {
System.out.println("hello");
// 斐波那契数列
// System.out.println(fbnq(-100));
}
// 斐波那契数列
// public static int fbnq (int value){
// if(value<1){
// return -1;
// }
// if(value == 1 || value == 2){
// return 1;
// }else{
// return fbnq(value-1)+fbnq(value-2);
// }
// }
}
阶乘
public class temp1 {
public static void main(String[] args) {
System.out.println("hello");
// 阶乘
// System.out.println(jc(-100));
}
// 斐波那契数列
// public static int jc(int value){
// if(value<1){
// return -1;
// }
// if(value == 1){
// return 1;
// }else{
// return value * fbnq(jc-1);
// }
// }
}