You are on page 1of 1

import java.util.Scanner; public class T1{ void mult(int m) {System.out.println ("The multiplication ..

\n" ); for(int x=1; x<= 12; x++) System.out.println (m + " * " + x + " = " + m * x);} public static void main (String[] args) { Scanner scan = new Scanner (System.in); int message = scan.nextInt();

T1 obj = new T1(); obj. mult(message);


} } public class T1{

static void mult(int m)

{ System.out.println ("The multiplication .. \n" ); for(int x=1; x<= 12; x++) System.out.println (m + " * " + x + " = " + m * x);} public static void main (String[] args) { Scanner scan = new Scanner (System.in); int message = scan.nextInt();

mult(message);

public class T1{

int x;
static void mult(int m) { System.out.println ("The multiplication .. \n" + x ); for(x=1; x<= 12; x++) System.out.println (m + " * " + x + " = " + m * x); } public static void main (String[] args) { Scanner scan = new Scanner (System.in); int message = scan.nextInt(); mult(message); } } public class T1{

static int x;

static void mult(int m) { System.out.println ("The multiplication .. \n" + x ); for(x=1; x<= 12; x++) System.out.println (m + " * " + x + " = " + m * x); } public static void main (String[] args) { Scanner scan = new Scanner (System.in); System.out.println (" Enter a line of text: " int message = scan.nextInt(); mult(message); } }

+ x);

You might also like