1067 - Odd Numbers - URI Online Judge || URI Online Judge 1067 Odd Numbers Solution

Problem Name: Odd Numbers
Problem Code: 1067
Judge: URI Online Judge
Problem link: 1067 - Odd Numbers
Solution on GitHub: 1067 - Odd Numbers



URI Online Judge 1067 - Odd Numbers Solution in C++/Cpp

#include <iostream>

using namespace std;

int main()
{
    int x;
    cin >> x;
    for (int i = 1; i <= x; i = i + 2)
    {
        cout << i << endl;
    }

    return 0;
}





Next Post Previous Post
No Comment
Add Comment
comment url