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

average of odd

P: 27
program calculate and print average value of odd elements of initialized array unsigned arr[10}={3,20,7,6}
use for loop and inside for loop use continue statemen to skip even number
please dont write code with cout
Nov 10 '06 #1
Share this Question
Share on Google+
1 Reply


sicarie
Expert Mod 2.5K+
P: 4,677
program calculate and print average value of odd elements of initialized array unsigned arr[10}={3,20,7,6}
use for loop and inside for loop use continue statemen to skip even number
please dont write code with cout
Can you write a few sentences about how you would do that?
Nov 10 '06 #2

Post your reply

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