Assignment 80

Code

    /// Gian Adoremos
    /// Period: 7
    /// Program Name: Eightieth Program
    /// File Name: CountingMachine.java
    /// Date Finished: 1/14/2016
    
import java.util.Scanner;
public class CountingMachine
{
    public static void main( String[] args )
    {
        Scanner key = new Scanner(System.in);
        System.out.println("count to: ");
        int a = key.nextInt();
        
        for ( int n = 1 ; n <= a ; n = n+1 )
        {
            System.out.println( "Mr. Davis is cool" );
        }

    }
}
 

Picture of the output

Assignment 80