public class Test4 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
//获取键盘输入的数值
Scanner sc= new Scanner(System.in);
int n = sc.nextInt();
int result = 0;
int i=1;
int j=0;
for(int r=1;r<=n;r++)
{
result=i+j;
i=j;
j=result;
public static void main(String[] args)
{
System.out.print("项数为:");
//获取键盘输入的数值
Scanner sc= new Scanner(System.in);
int n = sc.nextInt();
int result = 0;
int i=1;
int j=0;