(Created page with "Hier testen wir, ob "t" gerade oder ungerade ist. <syntaxhighlight lang="javaScript"> int t = 6; if(t % 2 == 0){ println("gerade" + t);} else{println("ungerade" + t); } </...") |
m (Max moved page GMU:Actors, Traces, Collectives/if Bedingung to GMU:Actors, Traces, Collectives/SS17/if Bedingung: gleicher kurs im WS) |
(No difference)
|
Revision as of 21:29, 13 August 2017
Hier testen wir, ob "t" gerade oder ungerade ist.
int t = 6;
if(t % 2 == 0){
println("gerade" + t);}
else{println("ungerade" + t);
}