Assignemnt #110 Display Multiply
Code
///Name: Joshua Pell
///Period: 6
///Project Name: Display Muliplt
///File Name: displayMult.java
///Date: 5/17/2015
import java.util.Scanner;
public class displayMult
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner( System.in );
int number, x;
System.out.print( "Choose a number: " );
number = keyboard.nextInt();
System.out.println();
for ( x = 1 ; x <=12 ; x = x + 1 )
{
System.out.println( number + "*" + x + "= " + (number * x) );
}
}
}
Picture of the output