Skip to content

Instantly share code, notes, and snippets.

@suragch
Created October 6, 2021 05:59
Show Gist options
  • Save suragch/55f437d34d03d8769e5986e720688703 to your computer and use it in GitHub Desktop.
Save suragch/55f437d34d03d8769e5986e720688703 to your computer and use it in GitHub Desktop.
homework
void main() {
const number = 3;
if (number == 0) {
print('zero');
} else if (number == 1) {
print('one');
}
// if 0 then print 'zero'
// if 1 then print 'one'
// if 2 then print 'two'
// if 3 then print 'three'
// if 4 then print 'four'
// if 5 then print 'five'
// if 6 then print 'six'
// if 7 then print 'seven'
// if 8 then print 'eight'
// if 9 then print 'nine'
// else print "I don't know"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment