Computer Science, asked by shayanbalti87, 1 month ago

write a
Guys pls help me in this​

Attachments:

Answers

Answered by purveshKolhe
1

Answer:

import java.util.Scanner;

public class Brainly {

public static void main(String [] args) {

Scanner sc = new Scanner(System.in);

int x = sc.nextInt();

if (x > 10 || x < 0 && x > 3) {

System.out.println("Winter");

}

else if (x > 2 && x < 7) {

System.out.println("Summer");

}

else if ( x > 6 && x < 11) {

System.out.println("monsoon");

}

}

}

Similar questions