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