2013년 2월 20일 수요일

3일차 숙제 ㅠㅠ

public class WhileNested {

public static void main(String[] args) {

// int i=0;

// while (i<5) {
// System.out.print("★");
//i++;

//}
//System.out.println();
/*
* ★★★★★
* ★★★★★
* ★★★★★
* ★★★★★
* ★★★★★
*/
/*i=0;

while (i<5){
i++;
System.out.print("★");
System.out.println();
}
System.out.println("-------------");

i=0;
while (i<5){

int i1=0;
while (i1<5) {
System.out.print("★["+i+","+i1+"]");
i1++;

}

i++;
System.out.println();
}*/
/*
*☆★★★★
*★☆★★★
*★★☆★★
*★★★☆★
*★★★★☆
*/
int a=0;
int b=0;
String msg=" ";
while(a<0){

if((a+1)*b==a*(b+1)){
System.out.println();msg="☆";
}else{
msg="★";
}

System.out.print(msg);
a++;

}
}
}                    
------------------------------------------
이별은 누구별 ㅡㅡ

아옹 ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ


댓글 5개:

국정원의 댓글 공작을 지탄합니다.

UPBIT is a South Korean company, and people died of suicide cause of coin investment.

 UPBIT is a South Korean company, and people died of suicide cause of coin. The company helps the people who control the market price manipu...