我的小代码
package com.chailujun; public class tiaojianyunsuanfu { public static void main(String[] args) { int score=68; int a=45; String mark =(score<60)? "不及格":"及格"; System.out.println("考试成绩如何:"+mark); String str =(a%2==0)? "a是偶数" :"a不是偶数"; System.out.println(str); } }