Assignemnt #81 Counting Machine Revisited

Code

    ///Name: Joshua Pell
    ///Period: 6
    ///Project Name: Counting Machine Revisited 
    ///File Name: Coutingrevisited.java
    ///Date: 3/3/2015
    
 import java.util.Scanner;

public class countingRevisited
{
        public static void main( String[] args )
        {
                Scanner keyboard = new Scanner( System.in );
                
                int from, to, by, number;
                
                System.out.print( "Count from: " );
                from = keyboard.nextInt();
                System.out.print( "Count to: " );
                to = keyboard.nextInt();
                System.out.print( "Count by: " );
                by = keyboard.nextInt();
                
                for ( number = from ; number <= to ; number = number + by  )
                    System.out.print( number + " "  );
                System.out.println();
        }
}
    

Picture of the output

Assignment 81