You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
756 B

public class Jb08_IfTest
{
public static void main(String[] args)
{
// <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD>жϳ<D0B6><CFB3><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int week = 3;
if (week==1)
{
System.out.println(week+"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ");
}
else if (week==2)
{
System.out.println(week+"<22><><EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD>");
}
else if (week==3)
{
System.out.println(week+"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
}else
{
System.out.println("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1-3<><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
}
// <09><><EFBFBD>󣺸<EFBFBD><F3A3BAB8><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD>ļ<EFBFBD><C4BC>ȡ<EFBFBD>
int month = 3;
if (month<1 || month>12)
{
System.out.println(<>д˼<D0B4><CBBC><EFBFBD>");
}
else if (month>=3 && month<=5)
{
System.out.println(month+"<22><><EFBFBD>Ǵ<EFBFBD><C7B4><EFBFBD>");
}
else if (month>=6 && month<=8)
{
System.out.println(month+"<22><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>");
}
else
{
System.out.println(month+"<22><><EFBFBD>Ƕ<EFBFBD><C7B6><EFBFBD>");
}
}
}