Baixe o app para aproveitar ainda mais
Prévia do material em texto
import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Codechef { public static void main (String[] args) throws java.lang.Exception { byte idade = 30; int distancia = 45000; float salario = 933; if (idade < 18){ system.out.println("Você é menor de idade"); } else if (idade >=18 && idade < 60){ System.out.println ("Você é um adulto! Vai trabalhar"); } else if (idade > 60){ Systen.out.println("Chega na melhor idade!"); } } }
Compartilhar