You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class Velocidade02 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Digite a velocidade do veículo: ");
int velocidade = scanner.nextInt();
String resultado = (velocidade <= 80) ? "Dentro do limite" : "Acima do limite";
System.out.println("Resultado: " + resultado);
scanner.close();
}
public class Velocidade02 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
}