fibonacci sequence
public class Numbers {
public static void FibannaciNumbers(int n) {
int x = 0;
int y = 1;
if(n >= 1) {
System.out.print(x + " ");
}
if(n >= 2) {
System.out.print(y);
}
if (n > 2) {
for(int a = n - 2; a > 0; a--) {
int z = y + x;
System.out.print(" " + z);
x = y;
y = z;
}
}
}
}