Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab4(146)

Snippet info

Language

Cpp

Visibility

public

Author

misha127831

Created

2018-10-22T15:36:17Z

Updated

2018-10-22T15:44:35Z

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

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

    return 0;
}
INFO