By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,798 Members | 1,336 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,798 IT Pros & Developers. It's quick & easy.

Arrays

P: 3
I'm working on my program called Bunny. Bunny is consists of a list of random numbers that increases. An asterisk is printed on top of the numbers. The asterisk will only print on the number if the difference between that number and the number before it is less than 50. It will not print if the difference is more than 50 or if there is a larger number that can still produce a difference of less than 50.

I'm confused about what to do for the printing of asterisks. I've talked to many of my friends who have told me to use a for loop and to use an array.
Jan 16 '07 #1
Share this Question
Share on Google+
1 Reply


10K+
P: 13,264
I'm working on my program called Bunny. Bunny is consists of a list of random numbers that increases. An asterisk is printed on top of the numbers. The asterisk will only print on the number if the difference between that number and the number before it is less than 50. It will not print if the difference is more than 50 or if there is a larger number that can still produce a difference of less than 50.

I'm confused about what to do for the printing of asterisks. I've talked to many of my friends who have told me to use a for loop and to use an array.
Now you need to post the code that you have tried and tell us which part of your code you are stuck with.
Jan 16 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.