Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- https://subicura.com/2017/01/19/docker-guide-for-beginners-1.html
- https://appmaster.io/ko/blog/rest-apiran-mueosimyeo-dareun-yuhyeonggwa-eoddeohge-dareungayo
- https://jcon.tistory.com/189
- https://joshua1988.github.io/web-development/javascript/promise-for-beginners/
- https://sewonzzang.tistory.com/22
- https://hi-zini.tistory.com/entry/%EB%B9%84%EB%8F%99%EA%B8%B0%EC%A0%81-%EB%B0%A9%EC%8B%9D-%EC%B2%98%EB%A6%AC-%EB%B0%A9%EB%B2%95-Callback-Promise-async-await
- https://joshua1988.github.io/web-development/javascript/js-async-await/
- https://aws.amazon.com/ko/docker/
- https://siyoon210.tistory.com/130
- https://goodgid.github.io/HTTP-Communicate-Process/
Archives
- Today
- Total
“Connecting the dots”
JAVA Study 자바로 구현된 구구단 프로그램구현. 본문
반응형
package exif;
import java.util.Scanner;
public class _01_Exdowhile1 {
public static void main(String[] args) {
Scanner scanner =new Scanner(System.in);
int dan;
String yn = "y";//다시할래?
do
{
//단입력 받기
System.out.print("단??:");
dan = scanner.nextInt();
for(int i=1; i<=9; i++)
{
System.out.printf("%d * %d = %2d\n", dan,i,dan*i);
}
//또할래
System.out.printf("또?(y/n):");
yn =scanner.next();
// System.out.printf("%d * %d = %2d\n", dan,2,dan*2);
// System.out.printf("%d * %d = %2d\n", dan,3,dan*3);
}while(yn.equals("y") || yn.equals("Y"));
System.out.println("--End---");
scanner.close();
}
}
반응형
'JAVA' 카테고리의 다른 글
java study 메소드 정의 (0) | 2023.04.10 |
---|---|
java study (0) | 2023.04.10 |
Java Study 파일을 읽어와서 내용을 콘솔에 출력하는 코드 (0) | 2023.04.06 |
JAVA STUDY 제어문 (0) | 2023.04.05 |
JAVASTUDY 10진수를 2진수로 변환하여 출력하는 기능 (0) | 2023.04.05 |