Monday, September 11, 2017

#include #include using namespace std; int main (int argc, char** argv) { int mins = 0, hr; char hours[2]; int len = strlen(argv[1]); for(int i =0; i=5 && hr <12){ cout<< "Good morning"<< endl; } if(hr >= 12 && hr <= 19){ cout << "Good afternoon"<< endl; } if(hr >= 19 || hr < 5){ cout << "Good night" << endl; } return 0; }