Created
December 17, 2014 15:42
-
-
Save sicknarlo/3007406c0e3619e4ea3d to your computer and use it in GitHub Desktop.
[CodeEval] Odd Numbers
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
//Print the odd numbers from 1 to 99. | |
#include<iostream> | |
using namespace std; | |
int main(){ | |
for (int i = 1; i < 100; i++){ | |
if (i % 2 != 0) | |
cout << i << endl; | |
} | |
system("pause"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment