import java.util.Scanner; public class ddd { public static void main (String[]ager) { int n; Scanner a=new Scanner(System.in); System.out.println(” Please enter “); n=a.nextInt(); long [] shu =new long [n]; shu [0]=0; shu [1]=1; for(int x=2; x<shu.length; x++) { shu[x]=shu[x-1]+shu[x-2]; } for(int z=0; z<shu.length; z++) { System.out.print(shu[z]+”\t”); }

	}
Copy the code

}