package com.day5.two;
public class If_Demo1 {
/**
* @param args
* 里面是3个整体if
* if
* if...else...
*/
public static void main(String[] args) {
int n=3;
if (n>1)
System.out.print("a");
if (n>2)
System.out.print("b");
if (n>3)
System.out.print("c");
else
System.out.println("d");
}
}
//输出结果abd