Assignemnt #110
Code
/// Name: Daniel Nguyen
/// Period: 6
/// Project Name: displays
/// File Name: displays.java
/// Date: 3/11/2015
import java.util.Scanner;
import java.util.InputMismatchException;
public class displays
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
int num = 0;
try
{
System.out.print("Choose a number: ");
num = keyboard.nextInt();
System.out.println("");
}
catch (InputMismatchException e)
{
System.out.println("WRONG INPUT");
}
for (int i = 1; i < 13; i++ )
System.out.println(num+"x"+i+" = "+ (num*i));
}
}
Picture of the output