Assignment #110
Code
/*
jack newsom
period 5
program Multiples
filename Multiples.java
date completed 11/12/2015
*/
import java.util.Scanner;
public class Multiples
{
public static void main( String[] args )
{
Scanner bot = new Scanner(System.in);
System.out.print("Choose a number: ");
int num = bot.nextInt();
System.out.println();
for ( int counter = 1; counter <= 12; counter = counter + 1 )
{
int product = counter*num;
System.out.println( num + "x" + counter + " = " + product );
}
}
}
Picture of the output