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