pls help me!!! I don't know how to create an output of all even numbers from 2-18 using a while loop!!!!!!
pls help me!!! I don't know how to create an output of all even numbers from 2-18 using a while loop!!!!!!
No No's:
fflush (stdin); gets (); void main ();
Goodies:
Example of fgets (); The FAQ, C/C++ Reference
My Gear:
OS - Windows XP
IDE - MS Visual C++ 2008 Express Edition
ASCII stupid question, get a stupid ANSI
i still can't get it.... where in the FAQ will I read it?
will you please give me the commands for it?
can anyone pls give us the structure in looping "even" numbers so that we can easily understand how to loop.. we're just newbies in C programming so we need help.
Anyone with a kind heart will be rewarded with BLESSINGS.
ME and NESIR.
Read fools.
Originally Posted by from the goddamned link that was provided to you
zomg do i look smarter cause i use !!!!!!!!!!!!
That being said, there is plenty in the book that you are using to do this, you just have to take the time to read it. I have yet to come accross a basic programming language class that the book doesn't not cover loops and conditionals.
Geez... another kid or teacher handing out the cboard link in programming 101 class, today. :/
...and from the time of year, I'd say these are the summer school flunkies, too. :/
Sent from my iPadŽ
Hey! I am a summer school kid! (though I haven't asked any homework questions here heh) I am getting the same assignments as these flunkies..
Well, why don't you indulge them with your solution. Wink, wink. Nudge, nudge. Say no more.Originally Posted by Wraithan
Sent from my iPadŽ
I would rather they failed and didn't end up in a workplace that I could end up in. If they don't want to put out the effort to read...
> another kid or teacher handing out the cboard link in programming 101 class
See, back in the old days, 101 was in decimal, and it implied at least a basic level of competence in something (I don't know what, maybe simple curiosity to actually try something then ask for help)
Nowadays, 101 is in binary, and I have to wonder how some people manage to turn their PC's on.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
That's the point. Wink, wink, nudge, nudge.Originally Posted by Wraithan
Come on, give them your solution.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Right?Code:while (int i = 2; i < 18); { printf("%s", i & 1? "odd" else "even", stdout); }
Last edited by whiteflags; 07-18-2006 at 01:26 PM.