please this is C++ COURSE, please give me detailed answer for me to study well.
ID: 3814787 • Letter: P
Question
please this is C++ COURSE, please give me detailed answer for me to study well. thank you // Lab 11 Pre-Lab Assignment // Lab 11 Pre-Lab // Write a function that multiplies each element in the array "myArray" // by the variable "multiplyMe". #include <iostream> using namespace std; // TODO - Write your function prototype here int main() { const int SIZE = 10; int myArray [SIZE] = {5, 10, 15, 20, 25, 30, 35, 40, 45, 50}; int multiplyMe = 5; // TODO - Add your function call here // print the array for(int i=0; i < SIZE; i++) { cout << myArray[i] << " "; } cout << endl; return 0; } // TODO - Write your function definition here
Explanation / Answer
When you run the program, output will be as below :
25 50 75 100 125 150 175 200 225 250
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.