Counting factor of a number between two specific numbers

 import java.util.*;

class PrintNoFactor{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int counter=0;
for(int i=a; i<=b; i++){
if(i%c == 0){
counter++;
}
}
System.out.println(counter);
}
}

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