题解 | #牛牛的一周#

牛牛的一周

https://www.nowcoder.com/practice/5394d88a8fa042d99e3b9be34e17ad71

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int day = scanner.nextInt();
        if (day == 1) {
            System.out.print("Monday");
        } else if (day == 2) {
            System.out.print("Tuesday");
        } else if (day == 3) {
            System.out.print("Wednesday");
        } else if (day == 4) {
            System.out.print("Thursday");
        } else if (day == 5) {
            System.out.print("Friday");
        } else if (day == 6) {
            System.out.print("Saturday");
        } else if (day == 7) {
            System.out.print("Sunday");
        }
    }
}

全部评论

相关推荐

06-23 11:28
门头沟学院 Java
牛客91966197...:也有可能是点拒绝的时候自动弹的话术
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务