Computer Science, asked by plsanswermyquestions, 11 months ago

Write a simple code that multiplies two numbers, 7.3 and 21. Then display the result in the serial monitor.

Answers

Answered by cherukurikavya03465
0

Answer:

sorry I don't know this answer

Answered by ansh6666
4

Answer:

Test Data:

Input first number: 25

Input second number: 5

Pictorial Presentation

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);

}

 

}

Similar questions