처음에 내가 짠 코드.
if ( c>='A' && c<='Z'){
System.out.println(c + " -> 대문자");
} else if ( c>='a' %% c<='z')
System.out.println(c + " -> 소문자");
} else {
System.out.println(c + " -> 기타문자");
}
'쌍용강북교육센터 > 7월' 카테고리의 다른 글
0707_Ex01_switch (0) | 2021.07.07 |
---|---|
0706_Ex06_switch (0) | 2021.07.07 |
0706_Ex04_if : 세 정수를 입력 받아 작은 순서대로 출력 (0) | 2021.07.07 |
0706_Ex03_if : 정수를 입력 받아 3또는 2의 배수인지, 3의 배수인지 아니면 2의 배수인지 판별 (0) | 2021.07.07 |
Q 0706_Ex01_if / Ex02_if : 입력받은 정수의 홀짝/짝 구분 (0) | 2021.07.06 |