I had also thought about that, since I'm only in chapter 3 of the book I'm in, doing lots of while() loops and such, that maybe I might be getting ahead a bit, so unless anyone else has any ideas,...
Type: Posts; User: parx86
I had also thought about that, since I'm only in chapter 3 of the book I'm in, doing lots of while() loops and such, that maybe I might be getting ahead a bit, so unless anyone else has any ideas,...
I've written a n00b practice program that extracts each digit from an integer of any size, and tell you how many of those integers are the number 7. The program works great, as long as the number...
Thanks for the replies, I searched on vart's advice of the % operator and found this thread, with the answer from wise_ron near the bottom
...
I'm currently working on an example in the book C: How to Program that I can't seem to figure out on my own
I need to write a program that will let me input, say, a 5-digit number, and then print...
OK, I think I have a good understanding of what's going on here, I'm sure I'll have another question very soon
Thanks everyone for your help!
I see what you mean, I tried running the program again inserting random amounts of spaces in front of my entries, and it always trims it to just the numbers. However, if I put tabs and spaces AFTER...
Ah, I see, so scanf() is smart enough to tell between a \n and a number, and throws out what it finds while it's searching for valid data? That makes perfect sense, that little detail wasn't in the...
After reading up on the scanf() function, I had considered that, but if that's the case, then I would have assumed that adding the 2nd number into the program would have then required 3 getchar()'s...
I'm a total n00b to programming in general, so forgive me if this is a bad question, but I've been searching all over the place and can't quite find an answer for my particular problem.
I want to...