Merge branch 'u04' of lgc/programmieren-1-java into master
This commit is contained in:
commit
8582f31211
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