package test3;
//项目三,熟悉switch.
public class TestSwitch {
/* public static void main(String[] args) {
int i = 18;
switch(i){
case 10:
System.out.println("A");
break;
case 14:
System.out.println("B");
break;
case 18:
System.out.println("C");
break;
}
}
public static void main(String[] args){
m();
m2(6);
m3(4,6);
//m4(5,8);
int i=m4(5,8);
System.out.println(i);
}
public static void m(){
System.out.println("Hello");
}
public static void m2(int i){
if(i>10){
return;
}else{
System.out.println("A");
}
}
public static void m3(int i,int j){
System.out.println(i+j);
}
public static int m4(int i,int j){
return i>j?i:j;
}
*/
//写一个1-100以内前5个可以被3整除的数.
public static void main (String [] args){
long t = 0;
int i = 1;
while(i<=100){
if(i%3==0){
System.out.println(i);
t++;
}
if(t==5){
break;
}
i++;
}
}
}