/*import java.util.Scanner;
public class zuoye{
public static void main(String[] args){
System.out.println("请输入值");
Scanner a=new Scanner(System.in);
int b=a.nextInt();
int c=b%7;
if(c==1){
System.out.println("输出星期一");
}else if(c==2){
System.out.println("输出星期二");
}else if(c==3){
System.out.println("输出星期三");
}else if(c==4){
System.out.println("输出星期四");
}else if(c==5){
System.out.println("输出星期五");
}else if(c==6){
System.out.println("输出星期六");
}else if(c==0){
System.out.println("输出星期日");
}
}
}*/
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240826070647288-243310440.jpg)