Quick actions

cmd+k|ctrl+k

Navigation

Languages

task 146

Snippet info

Language

Cpp

Visibility

public

Author

niktyutenko

Created

2018-10-14T17:35:09Z

Updated

2018-10-14T17:35:09Z

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

int main() {
    int a,b,n;
    a=1;
    cout << "Enter n/nn = " << endl;
    cin >> n;
    b=n+a;
    cout << (b%2==0 ? "Сумма номеров всех квартир чётное число:" : "Сумма номеров всех квартир нечётное число");

    return 0;
}
INFO