How to print ODD numbers from 1 to 10 C++ Program

CWC
0 Min Read

c++ Program to print ODD numbers from 1 to 10

# include 
using namespace std;
int main( )
{
int i;
for (i=1; i<=10; i+=2)
cout<<i<<" ";
return 0;
}
Share This Article
Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

English
Exit mobile version