Skip to content

Instantly share code, notes, and snippets.

View Magoninho's full-sized avatar
:octocat:
studying

João Felipe Ribeiro Magoninho

:octocat:
studying
View GitHub Profile
import java.util.Scanner;
public class PrimeiraQuestao {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
try {
System.out.print("Digite o primeiro número: ");
int n1 = scanner.nextInt();
System.out.print("Digite o segundo número: ");
int n2 = scanner.nextInt();
int resultado = n1 / n2;
[
{
"id": "29995f86e5eca604",
"type": "tab",
"label": "Fluxo 1",
"disabled": false,
"info": "",
"env": []
},
{