Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to write a java program for printing child or adult in java

Byte age = /*Input the persons age here*/ 39;
        if (age>=18){
            System.out.println(true+" "+",Your an adult");
        }
        else {
            System.out.println(true+" "+",Your an child");
        }
 
PREVIOUS NEXT
Tagged: #write #java #program #printing #child #adult #java
ADD COMMENT
Topic
Name
8+6 =