Checking a year is a leap or not using if-else if Conditions

 import java.util.*;

public class LeapYearOrNot{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
System.out.println("Enter the Year");
int n = sc.nextInt();

if(n%400==0){
System.out.println("The given year is a leap year");
} else if(n%100==0){
System.out.println("The given year is not a leap year");
} else if(n%4==0){
System.out.println("The given year is a leap year");
} else{
System.out.println("The given year is not a leap year");
}
}
}

Google Script for Data Entry Form in Google Spreadsheet

// function to validate the entry made by user in user form function validateEntry (){ // declare a variable and referernece of active goog...