diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2014-10-15 15:02:26 +0200 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2014-10-15 15:16:52 +0200 |
| commit | 8445b7d11b29b870815c3cef137391faac9afca5 (patch) | |
| tree | fdf69e6b9bac8e47614cd99d91e13bfdced35838 /misc/Blatt2.txt | |
| download | Java1-8445b7d11b29b870815c3cef137391faac9afca5.tar.gz Java1-8445b7d11b29b870815c3cef137391faac9afca5.zip | |
First commit of my Java1 work.
Diffstat (limited to 'misc/Blatt2.txt')
| -rw-r--r-- | misc/Blatt2.txt | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/misc/Blatt2.txt b/misc/Blatt2.txt new file mode 100644 index 0000000..533d4d2 --- /dev/null +++ b/misc/Blatt2.txt @@ -0,0 +1,73 @@ +// Aufgabe1
+
+while(Bedingung1){
+ if(!Bedingung2){
+ Anweisung;
+ }
+}
+
+// Aufgabe2
+
+while(Bedingung){
+ Anweisung1;
+ Anweisung2;
+}
+
+// Aufgabe3
+
+ B1 B2 B3
+A1 1 1 1
+
+A2 0 1 1
+
+A3 0 1 0
+
+if(Bedingung2){
+ if(Bedingung3){
+ if(Bedingung1){
+ Anweisung1;
+ }else{
+ Anweisung2;
+ }
+ }
+ else{
+ if(!Bedingung1){
+ Anweisung3;
+ }
+ }
+
+-------------------------------------------------
+
+ if(Bedingung1){
+ if(Bedingung3){
+ Anweisung1;
+ }
+ }
+ else{
+ if(Bedingung3){
+ Anweisung2;
+ }
+ else{
+ Anweisung3;
+ }
+ }
+}
+
+// Aufgabe4
+
+{
+ if(Bedingung1){
+ Anweisung1;
+ }
+ else if(Bedingung2){
+ Anweisung2;
+ }
+ else if(Bedingung3){
+ Anweisung3;
+ }
+ else{
+ Anweisung1;
+ }
+ }
+ }
+}
\ No newline at end of file |
