Absolute Value of an Integer


import java.util.*;
public class AbsoluteValue{
public static void main(String args []){
System.out.println("Enter an Integer Value");
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();

int absValue = (num>=0)? num :-num;
System.out.printf("The absolute value of %d is = %d",num,absValue);
}
}

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