Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate which total is larger. You must program it with the following functions/prototypes Functions (reference when needed):
• Fill the array
• Total the odds and evens
• Compare the totals and display the report.
Bradley_3
0
Newbie Poster
Recommended Answers
Jump to PostYou joined 16mins. ago, created this first post on the forum and you are requesting a whole program to be made by us ? i mean ....
Jump to PostLine 23 looks wrong. Shouldn't you be testing arry?
All 7 Replies
Stefce
146
Posting Pro
Bradley_3
0
Newbie Poster
Bradley_3
0
Newbie Poster
Bradley_3
0
Newbie Poster
rproffitt
2,565
"Nothing to see here."
Moderator
tinstaafl
1,176
Posting Maven
Xavier_5
12
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.