Java Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import java.io.*; public class Main { public static void main(String args[]) throws IOException { int number1 = 0, number2; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter first number "); number1 = Integer.parseInt(br.readLine()); System.out.println("Enter second number "); number2 = Integer.parseInt(br.readLine()); number1 *= number2; System.out.println("Multiplication of two numbers is: " + number1); } } |
Output:
1 2 3 4 5 6 7 |
Enter first number 12 Enter second number 23 Multiplication of two numbers is: 276 |