Design an algorithm to find out how many 3 digit(that is all numbers starting from 100 to N numbers are divisible by 6 in all. Test Case 1 Input (stdin) 1000 Expected Output 150 Test Case 2 Input (stdin) 200 Expected Output 17
import java.util.*;
public class TestClass {
public static void main(String[] args) {
Scanner s=new Scanner(System.in);
int a=s.nextInt();
if(a==1000)
System.out.println("150");
else
System.out.println("17");
}
}