Skip to content

Instantly share code, notes, and snippets.

@dosu-roseline
Created October 5, 2022 12:05
Show Gist options
  • Save dosu-roseline/8c7ae8c311338b9cd57ca17f4842e8df to your computer and use it in GitHub Desktop.
Save dosu-roseline/8c7ae8c311338b9cd57ca17f4842e8df to your computer and use it in GitHub Desktop.
void main() {
for(int i = 1; i <= 30; i++) {
// display the number with string
print('The Number is at $i');
// display only odd numbers ranging from 1 to 30
if(i.isOdd) {
print(i);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment