205k views
4 votes
What is the output of the

given program if the user
enters 20?
A. A lot of fun
B. some fun
C. no fun
Consider the following
segment:
Scanner
Scanner(System.in);
input
System.out.print("Please
value");
int value =
fun");
}
else
{
input.nextInt();
if (value >= 30 )
{
program
enter
System.out.println("A
lot
new
a
of
5

What is the output of the given program if the user enters 20? A. A lot of fun B. some-example-1

1 Answer

5 votes

if(value_ 30)

Step-by-step explanation:

es igual 30 espero que te sirva

User Anuj Garg
by
6.6k points