Critical Thinking – Simple Java Code

Write a Java program to print the sum (addition), multiply, subtract, and division of two numbers.

Start your code by copying/pasting this information into an editor like notepad, notepad++, or IDLE:

public class Main {

 public static void main(String[] args) {

// Write your code here

 }

}

Sample input:

Input first number: 125

Input second number: 24

Sample Output:

125 + 24 = 149

125 – 24 = 101

125 x 24 = 3000

125 / 24 = 5

Your submission should include the .txt file with the entire code, including the input and output. Review the grading rubric to see how you will be graded for this assignment.

Leave a Reply

Your email address will not be published.