It asks me to do something i can't clearly understand.....
Please explain what it is saying.
I can't clearly understand what it wants me to do. Can anyone help me?
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
3 November 2022, 14:32
Algebraic coordinates
0
Anonymous #11160211
3 November 2022, 14:11
Hi!
Maybe my code is useful for your understanding:
Scanner console = new Scanner(System.in);
int xAxesX = console.nextInt();
int yAxesY = console.nextInt();
if (xAxesX > 0 && yAxesY > 0)
System.out.println("1");
if (xAxesX < 0 && yAxesY > 0)
System.out.println("2");
if (xAxesX < 0 && yAxesY < 0)
System.out.println("3");
if (xAxesX > 0 && yAxesY < 0)
System.out.println("4");
Have a nice day!
+3