25 lines
412 B
C++
25 lines
412 B
C++
|
|
// Same as before but with a const int list
|
|||
|
|
#include <iostream>
|
|||
|
|
|
|||
|
|
int main()
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
const int Sunday = 0;
|
|||
|
|
const int Monday = 1;
|
|||
|
|
const int Tuesday = 2;
|
|||
|
|
const int Wednesday = 3;
|
|||
|
|
const int Thursday = 4;
|
|||
|
|
const int Friday = 5;
|
|||
|
|
const int Saturday = 6;
|
|||
|
|
|
|||
|
|
int today;
|
|||
|
|
today = Monday;
|
|||
|
|
|
|||
|
|
if (today == Sunday || today == Saturday)
|
|||
|
|
std::cout << "\nGotta’ love the weekends!\n";
|
|||
|
|
|
|||
|
|
else
|
|||
|
|
std::cout << "\nBack to work.\n";
|
|||
|
|
|
|||
|
|
return 0;
|
|||
|
|
}
|