Last active
January 4, 2018 07:50
-
-
Save sovietspy2/53a15eeb8f71cde840e5068ea5a2f565 to your computer and use it in GitHub Desktop.
egy iylen szerkezetu kod addig fut amig egyszer validalni tudja a szoveget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main() { | |
szoveg = scanf | |
while (!validate(szoveg)) { | |
szoveg = scanf | |
} | |
} | |
// do stuff | |
boolean validate (char[] szoveg()) { | |
if (..) { | |
// valid | |
return true; | |
} else { | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment