class Fibonacci {
public static void main (String args[]) {
int low = 1;
int high = 0;
System.out.println(low);
while (high < 50) {
System.out.println(high);
int temp = high;
high = high + low;
low = temp;
}
}
}
ExampleAddition
while loop
Relations
Variable declarations and assignments