My friend gave me a problem about C++ for loop statement...and it goes like this:
Output:
Enter Number n: 2
1 3
Basically, if I enter number 2, the first two odd numbers will appear. If I enter 5, the first five odd numbers will appear. As i Have no background about this, I searched the net but I found myself confused. Will you guys help me out? He told me that there is some sort of a code?? Hope you can help me...
2007-02-18
19:20:11
·
3 answers
·
asked by
rebomb
1
in
Computers & Internet
➔ Programming & Design
I just wanted to know the source code that my friend is talking about...I already know what is odd and even numbers...IT's just i wanna work this problem out....I repeat, i want the source and kindly explain how its done as I am new to this...and it happened that I have no background about programming..this is C++ by the way
2007-02-18
20:12:11 ·
update #1