Computers and Technology, 20.01.2020 17:31 lilly9240
Write an expression that will cause the following code to print "i am a teenager" if the value of userage is less than 20.
import java. util. scanner;
public class agechecker {
public static void main (string [] args) {
int userage;
scanner scnr = new scanner(system. in);
userage = scnr. nextint(); // program will be tested with values: 18, 19, 20, 21.
if (/ *your solution goes here*/ ) {
system. out. println("i am an adult");
}
else {
system. out. println("i am a teenager");
}
}
}
Answers: 1
Computers and Technology, 23.06.2019 22:30, kayelynn003
How many points do i need before i can send a chat
Answers: 1
Computers and Technology, 25.06.2019 02:30, Nismo3501037
What are the charges for invasion of privacy on computers
Answers: 1
Write an expression that will cause the following code to print "i am a teenager" if the value of us...
Mathematics, 01.07.2021 23:30
Mathematics, 01.07.2021 23:30