Kodewick
Start learning →
Starter←→0 / 86

Weekend or Not

#074Starterday == 6 || day == 73 min

day is the day of the week: 1 is Monday and 7 is Sunday. Show Weekend for Saturday (6) and Sunday (7), and Weekday for the rest. Here it is 6.

Should show
Weekend
main.cpp
#include <iostream>
using namespace std;

int main() {
    int day = 6;
    // your code here: decide whether it is the weekend
    return 0;
}
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.