Assignemnt #81 and CountingMachineAgain

Code

  /// name: Leila Ordukhani
  /// period: 6
  /// program name: Seventy-First Program
  /// file name: CountingMachineAgain.java
  /// date finished: 2/1/16
  
  import java.util.Scanner;
  
  public class CountingMachineAgain
{
    public static void main( String[] args )
    {
    
    Scanner keyboard = new Scanner(System.in);
    
    int message, x, y, z;
    
    System.out.print("Count from: ");
    x = keyboard.nextInt();
    
    System.out.print("Count to: ");
    y = keyboard.nextInt();
    
    System.out.print("Count by: ");
    z = keyboard.nextInt();
    
    for ( int n = x; n <= y; n = n + z )
    {
        System.out.println( n + " ");
    }
    }
  }
  

Picture of the output

Assignment 81