Computer Science, asked by tanya2601, 1 year ago

Plz write any one of the program(Java)...

Attachments:

tanya2601: okay..
anurag108: HLO
anurag108: HLO gm
tanya2601: gm
anurag108: which class
tanya2601: 9th
anurag108: chet in msg box
anurag108: HLO
tanya2601: yes!!
anurag108: okk

Answers

Answered by RishabhRDX
1
Program number 1:

import java.util.*;
class Dcoder
{
public static void main(String args[])
{
Scanner in = new Scanner(System.in);
System.out.println("Enter the number");
int num = in.nextInt();

if(num>=2 && num<=5)
System.out.println("Season is SUMMER");
else if(num<=9 && num>=6)
System.out.println("Season is RAINY");
else if(num==1 || num>=10 && num<=12);
System.out.println("Season is WINTER");
if(num>12 && num<1)
System.out.println("Invalid Value entered");
}
}

tanya2601: Thanks : )
RishabhRDX: follow for free help
Similar questions