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