public class Q11 { // 양의 정수를 입력하고 자릿수를 출력하는 프로그램 public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("자릿수를 구할 양의 정수를 입력하세요."); int a; do { System.out.print("a : "); a = scanner.nextInt(); } while (a 0) { a /= 10; num++; } System.out.println("자릿수 : " + num); } } - 풀다가 모르겠어서 답 봄 ※참조 Do it! 자료구조와 함께 배우는 알고리즘 입문
public class Q10 { // b-a = ? public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("두 수의 차를 구합니다."); System.out.print("a : "); int a = scanner.nextInt(); int b; do { System.out.print("b : "); b = scanner.nextInt(); } while (b a) break; System.out.println("a보다 큰 값을 입력하세요!"); } System.out.println("b - a는 " + (b - a) + "입니다."); } } (2) ※참조 Do it! 자료구..
public class Q9 { // 정수 a,b를 포함하여 그 사이의 모든 정수의 합 구하기 public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("두 수를 입력하세요."); System.out.print("a : "); int a = scanner.nextInt(); System.out.print("b : "); int b = scanner.nextInt(); int sum = sumof(a, b); System.out.println("sum : " + sum); } static int sumof(int a, int b) { int sum = 0; int max = 0; i..
- Total
- Today
- Yesterday
- http
- 모던자바스크립트
- 백준
- 김영한 http
- 프로그래머스
- 이펙티브자바 아이템59
- js api
- HTTP 완벽가이드
- REST API
- 백기선 스터디
- java
- JPA 연관관계 매핑
- 드림코딩
- 패스트캠퍼스 컴퓨터공학 완주반
- dreamcoding
- Spring Security
- 김영한 JPA
- 프로그래머스 SQL
- 이펙티브자바 스터디
- 킹수빈닷컴
- JS 딥다이브
- js array
- GCP
- 이펙티브자바
- 이펙티브자바 아이템60
- js promise
- BOJ
- HTTP 완벽 가이드
- ㅇㄷㅇㅈ
- 가상 면접 사례로 배우는 대규모 시스템 설계 기초
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |