Computer Science, asked by amaira1609, 7 months ago

Question 2:
Write a program in java to find the product of two numbers. Accept the two
numbers using Function Argument Blue) System.​

Answers

Answered by gulshankumar70786
2

Explanation:

import java.util.Scanner;

public class MultiplicationOfTwoNumbers {

public static void main(String args[]){

Scanner sc = new Scanner(System.in);

System.out.println("Enter the value of the first number ::");

int a = sc.nextInt();

System.out.println("Enter the value of the first number ::");

int b = sc.nextInt();

int result = a*b;

System.out.println("Product of the given two numbers is ::"+result);

}

}

Output

Enter the value of the first number ::

55

Enter the value of the first number ::

66

Product of the given two numbers

Answered by xcristianox
3

import java.util.Scanner;

public class MultiplicationOfTwoNumbers {

public static void main(String args[]){

Scanner sc = new Scanner(System.in);

System.out.println("Enter the value of the first number ::");

int a = sc.nextInt();

System.out.println("Enter the value of the first number ::");

int b = sc.nextInt();

int result = a*b;

System.out.println("Product of the given two numbers is ::"+result);

}

}

Output

Enter the value of the first number ::

55

Enter the value of the first number ::

66

Product of the given two numbers

Similar questions