Quick actions

cmd+k|ctrl+k

Navigation

Languages

Задание №153

Snippet info

Language

Cpp

Visibility

public

Author

diety

Created

2018-10-17T10:07:31Z

Updated

2018-10-21T10:40:40Z

#include <iostream>
#include <cmath>
using namespace std;

int main() 
{
    int x;
    cout << "Введите номер дня,который вы хотите узнать и нажмите Enter\n";
    cin >> x;
    (1<=x<=365);
    if (x%6 == 0)
    {
    cout << "Это суббота";
    }
    if (x%7 == 0)
    {
    cout << "Это воскресенье";
    }
    if ((x%6 != 0) && (x%7 != 0))
    {
    cout << "Это рабочий день"<<endl;
    }
    return 0;
}
    
    
    
    
    
INFO