Challenge: Arithmetic Operations
Write a Java program that prints the results of these math operations:
Add 5 + 7 + 3
Multiply 6 × 8
Divide 20 ÷ 2 (show a decimal result)
Rules
Put your code inside
main.Use
System.out.println(...)to print each result on its own line.
Challenge: Arithmetic Operations
Write a Java program that prints the results of these math operations:
Add 5 + 7 + 3
Multiply 6 × 8
Divide 20 ÷ 2 (show a decimal result)
Rules
Put your code inside
main.Use
System.out.println(...)to print each result on its own line.