Skip to content

Instantly share code, notes, and snippets.

@dimeprog
Created October 2, 2022 20:44
Show Gist options
  • Save dimeprog/35f767bf0d6379d405ee4ff40899f789 to your computer and use it in GitHub Desktop.
Save dimeprog/35f767bf0d6379d405ee4ff40899f789 to your computer and use it in GitHub Desktop.
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");
}
}
}
@dimeprog
Copy link
Author

dimeprog commented Oct 2, 2022

completed task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment