C++.First 10 odd numbers using for

 #include <iostream>

using namespace std;

int main() {

    // Write C++ code here

    for(int i=0;i<10;i++)

    {

        cout<<2*i+1<<endl;

    }

    return 0;

}

Comments