Answer:
Explanation:
#include <iostream>
using namespace std;
int main()
{
string cwords[8]={"ten", "fading", "post", "card", "thunder", "hinge", "trailing", "batting"};
string temp="";
for (int i=0; i<8; i++)
{
temp=cwords[i];
int j=temp.length();
if (temp[j-3]=='i' && temp[j-2]=='n' && temp[j-1]=='g')
{
cout<<temp<<endl;
}
}
return 0;
}