• Java编程语言基础 第三章 判断两种数据 && ||用法


    package cn.save;

    import java.util.Scanner;

    public class Dome {
    public static void main(String[] args){

    Scanner input = new Scanner(System.in);
    System.out.println("输入成绩:");
    int score = input.nextInt();
    System.out.println("输入音乐成绩:");
    int music = input.nextInt();
    if((score>98 && music>80) || (score==100 && music>70)){
    System.out.println("老师奖励");
    }
    /*if(score>98 && music>80){
    System.out.println("老师奖励");
    }else if(score==100 && music>70){

    System.out.println("老师也奖励");
    }else {
    System.out.println("无");
    }*/
    }
    }

  • 相关阅读:
    Linux安装nginx
    linux目录结构
    Django-admin
    celery
    Flask-Migrate
    Flask-Script
    Flask-SQLAlchemy
    SQLAlchemy
    mongodb的增删改查
    websocket的加密和解密过程
  • 原文地址:https://www.cnblogs.com/ls1783047205/p/9328708.html
Copyright © 2020-2023  润新知