Skip to content

Instantly share code, notes, and snippets.

@sovietspy2
Last active January 4, 2018 07:50
Show Gist options
  • Save sovietspy2/53a15eeb8f71cde840e5068ea5a2f565 to your computer and use it in GitHub Desktop.
Save sovietspy2/53a15eeb8f71cde840e5068ea5a2f565 to your computer and use it in GitHub Desktop.
egy iylen szerkezetu kod addig fut amig egyszer validalni tudja a szoveget
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