Printing odd numbers up-to a given number

 import java.util.*;


public class PrintOddNum{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
System.out.println("Enter the no up to which odd no is to be printed");
int n = sc.nextInt();
System.out.print("List of odd is :");
for(int i=0; i<=n; i++){
if(i%2 != 0){
System.out.println(i);
}
}
}
}

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