This commit is contained in:
parent
abd070ae22
commit
026ac00e78
Binary file not shown.
|
@ -0,0 +1,22 @@
|
||||||
|
public class Rotation {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
int x= 2;
|
||||||
|
int y= 3;
|
||||||
|
|
||||||
|
// --------------------------------------
|
||||||
|
// | Hier fehlt Ihr Code
|
||||||
|
// | Verwenden Sie einfache Zuweisungen
|
||||||
|
|
||||||
|
|
||||||
|
int tmp = x;
|
||||||
|
x = y;
|
||||||
|
y = -tmp;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// | Ende Ihres Codes
|
||||||
|
// --------------------------------------
|
||||||
|
|
||||||
|
System.out.println(x + " " + y);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue