-
-
Save uncoded-ro/5188a2592336edc15b62ab24b4887369 to your computer and use it in GitHub Desktop.
This file contains 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
class OpCond { | |
public static void main(String[] args) { | |
int varsta = 15; | |
String tipPersoana; | |
tipPersoana = (varsta < 18) ? "adolescent" : "tanar"; | |
System.out.println("Varsta " + varsta + " ani corespunde unui " + tipPersoana + "."); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment