Informática, perguntado por hannahraynner, 8 meses atrás

Faça um algoritmo para ler dois números inteiros e informar se estes são iguais ou diferentes.

Soluções para a tarefa

Respondido por carolineschneid
3

Resposta:

import java.util.Scanner;

public class teste {

public static void main (String[]args) {

Scanner t = new Scanner(System.in);

int a = t.nextInt();

int b = t.nextInt();

if(a  ==  b) {

 System.out.println("São iguais");

}else {

 System.out.println("Não são iguais");

}

}

}

Perguntas interessantes