I just started Java. Help me"T"

Asked 2 years ago, Updated 2 years ago, 22 views

You should write a program that outputs "wrong input" if~else if~else if~else if~else if~else if~else if you enter a number and 3~5 is "spring", 6~8 is "summer", 9~11 is "autumn", 12, 1 and 2 are entered.

For example, if you want to make spring print out,

if( ); { System.out.print("Spring\n");

I don't know what to write in parentheses if(). I just started Java, so I don't even know simple things.I would appreciate it if you could kindly let me know.<

java

2022-09-20 16:56

1 Answers

If you can't do this, it's not your talent. Give up and do something else.


2022-09-20 16:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.