Write a program in Java to enter two numbers. Calculate the square of the first number and cube of the second number and print the result with an appropriate message.
Answers
Answered by
0
Answer:
Java exercises and solution: Write a Java program that reads a ... Java Data Type Exercises: Reads a number and display the square, cube, and ... [] args) { Scanner in = new Scanner(System.in); System.out.print("Input the ... Sample Output: ... Previous: Calculate speed in meters per second, kilometers
Explanation:
Similar questions