public class halfCount{ public static void main(String[] args){ for(double i = -10; i <= 10; i = i + 0.5){ System.out.println(i); } } }