#80

Code

  /// Name: Josh Bautista
  /// Period: 6
  /// Program Name: Counting Machine
  /// File Name: CM.java
  /// Date Finished: 2/26/2015
  
  import java.util.Scanner;

public class CM
{
    public static void main( String[] args )
    {
        Scanner keyboard = new Scanner(System.in);
        int n;
        
        
        System.out.print(" Count to: ");
        n = keyboard.nextInt();
        for ( int na = 0 ; na <= n ; )
        {
            System.out.print( na + "," );
            na++;
            }
            }
            }
        
    

Picture of the output

Assignment 4