Please help me with this:
Declare an integer array named "scores" to contain 50 elements.
&
Generate a code (a loop) that will initialize every element in the array from the above declaration("scores") to the value 75.
Faramba
0
Newbie Poster
Recommended Answers
Jump to PostI hope this is not homework! That would be cheating!
This will do something like that, learn from it:#include <iostream> #include <iomanip> // for setw() #include <stdlib.h> // for system() using namespace std; int main() { int k; int scores[50]; // array to hold 50 integers …
All 2 Replies
Reply to this topic
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.