Write a simple code that multiplies two numbers, 7.3 and 21. Then display the result in the serial monitor.
Answers
Answered by
0
Answer:
sorry I don't know this answer
Answered by
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