Created
October 6, 2022 12:22
-
-
Save George-smart/7445e7922ed9c30250006a596ac678de 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(){ | |
int odd = 1; | |
// looping through a number ranging from 1 - 30; | |
for (; odd <= 30; odd++){ | |
// check if it is an odd number | |
if ((odd % 2) != 0){ | |
// Printing the result. | |
print("The number is at $odd"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment