ComeçarComece de graça

Printing as a calculator

Computers excel at performing calculations instantly. Rather than computing values by hand, you can let Java do the math for you and display the results. Let's see this in action!

Este exercício faz parte do curso

Introduction to Java

Ver curso

Instruções do exercício

  • Print the result of 1+3 to the output.

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

class Calculator {
	public static void main(String[] args) {
    	// Print the result of 1+3
        System.out.println(____);
    }
}
Editar e executar o código