Assignment #81 and Counting Machine Revisited

Code

    /// Name: Lauren Baird
    /// Period: 7
    /// Program Name: Counting Machine Revisited
    /// File Name: CountingMachineR.java
    /// Date Finished: 11/19/2015
    
    import java.util.Scanner;
    
    public class CountingMachineR
    {
        public static void main( String[] args )
        {
            Scanner keyboard = new Scanner(System.in);
            
            System.out.println();
            
            System.out.print( "Count from: " );
            int f = keyboard.nextInt();
            
            System.out.print( "Count to  : " );
            int t = keyboard.nextInt();
            
            System.out.print( "Count by  : " );
            int b = keyboard.nextInt();
            
            System.out.println();
            
            for ( int n = f ; n <= t ; n = n+b )
            {
                System.out.print( n + " " );
            }
            
            System.out.println();
        }
    }  
    

Picture of the output

Assignment #81