Created
October 5, 2022 12:05
-
-
Save dosu-roseline/8c7ae8c311338b9cd57ca17f4842e8df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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