public class ExemploWhile
{
	int x = 0; 
	int y = 1;
	public  ExemploWhile()
	{
		while((x <1000)&&(y<1000))		
		{
			x = x + y;
			System.out.println(""+x);
			y = y + x;
			
			System.out.println(""+y); 	
		}
	}
	public static void main (String args [])
		{new ExemploWhile(); }
	
}
