publicstaticvoidmain(String[]ARGS){Scannerscanner=newScanner(System.in);intgesucht=3;while(scanner.nextInt()!=gesucht){System.out.println("Falsche Zahl");}System.out.println("Richtig! Die gesuchte Zahl war 3");}
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.