package oop0314;
import java.util.Iterator;
public class Test02_quiz {
public static void main(String[] args) {
int count=0;
for(char ch='A';ch<='Z';ch++) {
count++;
System.out.print(ch);
if(count%5==0) {
System.out.println();
}
}
System.out.println();
for(int c=1; c<=4;c++){
for(int d=1; d<=4; d++){
if(c<=d) {
System.out.print("#");
}else {
System.out.print(" ");;
}
}
System.out.println();
}
System.out.println();
double bunsu=0.0;
boolean flag=false;
for(int h=1;h<=99;h++) {
if(flag) {
bunsu= bunsu-(h/(double)(h+1));
flag=false;
}else {
bunsu= bunsu+ (h/(double)(h+1));
flag= true;
}
}
System.out.println(bunsu);
System.out.println();
int tot=0;
for (int f =10; f<=100; f=f+10){
for(int g=f-9; g<=f; g=g+1){
tot= tot+g;
}
System.out.printf("%d + ... + %d = %d\n",(f-9) ,f,tot);
tot=0;
}
int tree=13,day=3;
double night=2.5;
double t_tot=0;
if((tree-night) % (day-night)==0) {
t_tot=(tree-night)/(day-night);
}else {
t_tot=(tree-night)/(day-night)+1;
}
System.out.println(t_tot);
int days=0;
double snail=0.0;
while(true) {
days++;
snail=snail+3.0;
if(snail>=13.0) {
break;
}else {
snail= snail-2.5;
}
}
System.out.println(days+"일");
}
}