static void main(String[ ] args) { int x,y; x = 4; while (x <= 10){ y = 3*x+5; System.out.println("f("+x+")="+y); x = x+1 } }