Skip to content

Instantly share code, notes, and snippets.

View FernandoAntonio's full-sized avatar

Fernando Antonio FernandoAntonio

View GitHub Profile
@FernandoAntonio
FernandoAntonio / main.dart
Created September 23, 2021 21:36
Prints from 1 to 100, but multiples of 3, 5, and 3 and 5 simultaneously being exceptions
void main() {
final String bud = 'Bud';
final String vue = 'Vue';
final String username = 'Fernando Antonio';
bool isMultipleOfThree(int number) => (number % 3 == 0);
bool isMultipleOfFive(int number) => (number % 5 == 0);
for (var i = 1; i <= 100; i++) {
if (isMultipleOfThree(i) && isMultipleOfFive(i)) {