.Write a short code using C++ to print out all odd number from 1 to 100 using a for loop

Q

Write a short code using C++ to print out all odd number from 1 to 100 using a for loop
for( unsigned int i = 1; i < = 100; i++ )
if( i & 0x00000001 )
cout << i<<",";

✍: Guest

A
(This question has not been answered yet. If you know the answer, please share it in a comment below.)

2012-04-18, 2956👍, 0💬