Assignment #110
Code
/// Name: Jonathan Stine
/// Period: 5
/// Program Name: Displaying Some Multiples
/// File Name: DisplayingMultiples.java
/// Date Finished: !@#$%^&*()+_ [BEEP BOOP]
import java.util.Scanner;
public class DisplayingMultiples {
public static void main(String[] args ) {
Scanner keyboard = new Scanner(System.in);
System.out.println();
System.out.println( "Choose a number: " );
int number = keyboard.nextInt();
System.out.println();
for ( int i=1; i<13; i++ ) {
int mult = i * number;
System.out.println( number + "x" + i + " = " + mult );
}
}
}
Code Output