Fix the code to print the last element of the array:
![1 #include <iostream> 2 3 using namespace std; 4 5 int mainO 6 an array of size 7 int array[7]; // 8 int x; 10, for(inti = 0](https://media.cheggcdn.com/media%2Fd3c%2Fd3cbf7ca-ee3c-46ff-9cdf-603217bdf7d0%2FphpDAa5Zr.png)
1 #include <iostream> 2 3 using namespace std; 4 5 int mainO 6 an array of size 7 int array[7]; // 8 int x; 10, for(inti = 0 ; ¡ < 7; 1++){ // array initialization arrayli] -x; 12 13 15 cout << “The Last element is: “< 16 17 return0; 18 19 20 Show transcribed image text
Expert
OR
PayPal Gateway not configured
OR
PayPal Gateway not configured
PayPal Gateway not configured
PayPal Gateway not configured