티스토리 뷰
public class Q12 {
public static void main(String[] args) {
System.out.println(" | 1 2 3 4 5 6 7 8 9 ");
for (int i = 1; i <= 9; i++) {
System.out.printf("%2d |" , i);
for (int j = 1; j <= 9; j++) {
System.out.printf("%3d", i * j);
}
System.out.println();
}
}
}
(1)
class Multi99TableEx_01_12 {
public static void main(String[] args) {
System.out.print(" |");
for (int i = 1; i <= 9; i++)
System.out.printf("%3d", i);
System.out.println("\n---+---------------------------");
for (int i = 1; i <= 9; i++) {
System.out.printf("%2d |", i);
for (int j = 1; j <= 9; j++)
System.out.printf("%3d", i * j);
System.out.println();
}
}
}
(2)
※참조
Do it! 자료구조와 함께 배우는 알고리즘 입문
반응형
'PS > etc' 카테고리의 다른 글
chapter1) 사각형 별찍기 (0) | 2020.07.06 |
---|---|
chapter1) 덧셈표 작성 (0) | 2020.07.06 |
chapter1) 양의 정수 자릿수 구하기 (0) | 2020.07.06 |
chapter1) 두 수의 차 구하기 (0) | 2020.07.06 |
chapter1) 두 정수 사이의 합 구하기 (0) | 2020.07.06 |
링크
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 프로그래머스
- 모던자바스크립트
- 집 구하기
- 김영한 JPA
- 이펙티브자바 스터디
- 백준
- JS 딥다이브
- dreamcoding
- 가상 면접 사례로 배우는 대규모 시스템 설계 기초
- 김영한 http
- BOJ
- 이펙티브자바 아이템60
- java
- 킹수빈닷컴
- http
- GCP
- Spring Security
- HTTP 완벽 가이드
- HTTP 완벽가이드
- js api
- 이펙티브자바 아이템59
- 백기선 스터디
- 드림코딩
- 프로그래머스 SQL
- JPA 연관관계 매핑
- REST API
- 패스트캠퍼스 컴퓨터공학 완주반
- js array
- 이펙티브자바
- js promise
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
글 보관함