#include #include using namespace std; int main() { string days[]={"Sunday","Monday","Tuesday","Wednesday", "Thursday","Friday","Saturday"}; // Full names of the days. for(int i=0; i<=6; i++) cout << days[i] << endl; cout << endl; // Abbreviated names of the days. for(int i=0; i<=6; i++) { cout << days[i][0]; cout << days[i][1]; cout << days[i][2]; cout << endl; } cout << endl; // Abbreviated names of the days. for(int i=0; i<=6; i++) { cout << days[i].substr(0,3) << endl; } return 0; }