/** 9. Write a C++ program that reads all the integers from a file ``int.txt'', stores them in an array called {\em myintarray}, and then prints the integers to the console in reverse order. (Hint: Use a for-loop on the array). **/ #include #include #include using namespace std; int main () { char in_name[15]; int a,i=0,c,n,sum; int myarray[100]; //THIS ASSUMES you are reading in no more than 100 integers ifstream infile; cout<< "Enter input file name\n"; cin>>in_name; infile.open(in_name); if(infile.fail()){ cout<<"Failed to open input file\n"; exit(1); } while (infile >> a){ myarray[i]=a; i++; } for (int j=i-1; j>= 0;j--) { cout<<"myarray["<