#include <iostream>
using namespace std;
int main() {
    int what_year;
    cout << "Enter calendar year ";
    cin >> what_year;
    if (what_year - (n * 4) = 0 ) {
        cout << "leap year";
    }
    else
    {
        cout << "wont work";
    }
    system("Pause");
    return 0;
}
Trying to make a program for class, to find a leap year.. not sure how to ask C++ if an integer is divisible by a number?
 
     
     
     
     
    