Compare Two and their remainder


 import java.util.*;
public class TwoNoComp {

public static int result(int x, int y) {
if (x == y){
return 0;
}
if (x % 6 == y % 6) return (x < y) ? x : y;
return (x > y) ? x : y;
}

public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter first number");
int x = sc.nextInt();
System.out.println("Enter the second number");
int y = sc.nextInt();

int z = result(x, y);
System.out.println(z);
}
}

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...