Created
October 2, 2022 20:44
-
-
Save dimeprog/35f767bf0d6379d405ee4ff40899f789 to your computer and use it in GitHub Desktop.
This file contains hidden or 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() { | |
// looping in the range of 1-30 | |
for (int i = 1; i <= 30; i++) { | |
// conditional statement to check if is odd | |
if (i % 2 != 0) { | |
print("The number is at $i"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
completed task