Computer Science, asked by mickey9581, 7 months ago

write a java program to accept a,b numbers and show tge answer as c....pls send me fastlu​

Answers

Answered by umesh156
1

Explanation:

import java.util.Scanner;

public class Exercise5 {

public static void main(String[] args) {

Scanner in = new Scanner(System.in);

System.out.print("Input first number: ");

int num1 = in.nextInt();

System.out.print("Input second number: ");

int num2 = in.nextInt();

System.out.println(num1 + " x " + num2 + " = " + num1 * num2);

}

}

Answered by adityasingh8080
0

Answer

Mark as brainliest

import java.util.Scanner;

public class Exercise5 {

public static void main(String[] args) {

Scanner in = new Scanner(System.in);

System.out.print("Input first number: ");

int num1 = in.nextInt();

System.out.print("Input second number: ");

int num2 = in.nextInt();

System.out.println(num1 + " x " + num2 + " = " + num1 * num2);

}

}

Similar questions