Skip to content

Instantly share code, notes, and snippets.

@modernNeo
Last active June 18, 2021 01:15
Show Gist options
  • Save modernNeo/0c11f4443f2eac7cd16432d6c8982d78 to your computer and use it in GitHub Desktop.
Save modernNeo/0c11f4443f2eac7cd16432d6c8982d78 to your computer and use it in GitHub Desktop.
Dartpad code
void main() {
for (int i = 1; i <= 100; i++) {
bool multiple_of_3 = i % 3 == 0;
bool multiple_of_5 = i % 5 == 0;
if (multiple_of_3 && multiple_of_5){
print("Budvue should consider Jace for this position");
}
else if (multiple_of_3){
print("Bud");
}else if (multiple_of_5){
print('Vue');
}else{
print('${i}');
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment