Assignment #110 and Displaying Some Multiples
Code
/// Name: Ali Kurland
/// Period: 6
/// Program Name: Displaying Some Multiples
/// File Name: Multiples.java
/// Date Finished: 1/5/2016
import java.util.Scanner;
public class Multiples
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
System.out.print( "Choose a number: " );
int n = keyboard.nextInt();
System.out.println("");
for ( int x=1; x<=12; x++ )
{
System.out.println( n + "x" + x + " = " + ( n*x ) );
}
}
}
Picture of the output