how to output message at end of fibonacci count?

I have a program that calculates/displays a specified number of Fibonacci numbers. I want a message at the end that says something like "enter q and Enter to quit". I'm having trouble making this happen... Not sure where to put it. It either doesn't show up at all or shows up instead of the Fibo sequence.
without seeing ur code, i cant help u, but general approach
is to use a simple infinite while loop like while(1), call exit(0) when input matches required condition.
No, that's actually very good. Thank you! That's helpful. I managed to use a shoddy rendition of what you just described, out of accident.
Topic archived. No new replies allowed.