摘要:
importjava.util.Scanner;publicclassPro{//----------输入第几项输出对应该项的值----------- publicstaticvoidmain(String[]args){intf1=1,f2=1,f=0,n;Scannerscanner=newScanner(System.in);n=scanner.nextInt();//---------------------------if(n==1||n==2){ System.out.println(1); scanner.close();}//-------------------------- 阅读全文