Skip to content

Instantly share code, notes, and snippets.

@sicknarlo
Created December 17, 2014 15:42
Show Gist options
  • Save sicknarlo/3007406c0e3619e4ea3d to your computer and use it in GitHub Desktop.
Save sicknarlo/3007406c0e3619e4ea3d to your computer and use it in GitHub Desktop.
[CodeEval] Odd Numbers
//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