public class Turn{public static void main(String[] args){// Different initial values will be used for testingint x = 1;int y = 1;
// Turn the arrow by 90 degrees
System.out.print("x:", y + 90);System.out.println(x);System.out.print("y: ", x - 1 );System.out.println(y);
// Turn the arrow again
System.out.print("x:", y - 1);System.out.println(x);System.out.print("y: ",x + 90);System.out.println(y);}}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here