Comparing sum of two numbers with a third number

 import java.util.*;


public class printSumNum{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
System.out.println("Enter first number");
int a = sc.nextInt();
System.out.println("Enter Second number");
int b = sc.nextInt();
int sum = a+b;
System.out.println("Enter the number to be compared");
int c = sc.nextInt();
if(c == sum){
System.out.println("true");
} else{
System.out.println("false");
}


}
}

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