Created
February 16, 2017 23:39
-
-
Save Rafael11j/a62288aac3f6183f7f0989acddd1ed29 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package exercicícios; | |
| import java.util.Scanner; | |
| public class Exercício01 { | |
| public static void main(String[] args) { | |
| Scanner abre = new Scanner(System.in); | |
| int n1, n2, soma; | |
| System.out.println("Digite o primeiro número: "); | |
| n1 = abre.nextInt(); | |
| System.out.println("Digite o segundo número: "); | |
| n2 = abre.nextInt(); | |
| soma = n1 + n2; | |
| System.out.println("A soma é igual a: " + soma); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment