Write a program which validates whether the given input year is Leap or Not Leap. For Ex: 1) if user inputs 2008 then program should print ""Leap"". 2) if user inputs 2009 then program should print ""Not leap"" Test Case 1 Input (stdin) 2000 Expected Output Leap Test Case 2 Input (stdin) 2001 Expected Output Not Leap
#include <iostream> using namespace std; int main() { int n; cin>>n; if(n%4==0) cout<<"Leap"; else cout<<"Not Leap"; return 0; }