Assignemnt #63 and CountingWhile
Code
/// name: Leila Ordukhani
/// period: 6
/// program name: Fifty-Third Program
/// file name: CountingWhile.java
/// date finished: 12/3/15
import java.util.Scanner;
public class CountingWhile
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
System.out.println( "Type in a message, and I'll display it ten times." );
System.out.print( "Message: " );
String message = keyboard.nextLine();
int n = 0;
while ( n < 10 )
{
System.out.println( ((n+1)*10) + ". " + message );
n++;
}
}
}
Picture of the output