Merge branch 'u04' of lgc/programmieren-1-java into master

This commit is contained in:
Luca Conte 2022-10-27 17:49:54 +02:00 committed by Gogs
commit 8582f31211
2 changed files with 22 additions and 0 deletions

BIN
u04/Rotation.class Normal file

Binary file not shown.

22
u04/Rotation.java Normal file
View File

@ -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);
}
}