public class ProgSimpleWhile { public static int x; public static void main(String []args) { x = 0; while (x<10) { x += 1; } System.out.println("x="+x); } }