c++ cZar
Monday, June 29, 2009
Bitwise operator(some nice program
Program to print Odd nos.:
#include
#include
using namespace std;
int main()
{
for(unsigned int i= 1; i <= 100; i++ )
if( i & 0x00000001 )
cout << i<<" ";
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment