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 |
Tags
- 맥북 개발
- 자바
- 맥북 데이터베이스 설치
- 자바변수
- 맥 sql설치
- 자바실수
- 자바복습
- 자바 커피
- Mac db
- 자바연산
- 자바 복습
- 맥북 데이터베이스
- 자바연산자
- 맥 데이터베이스
- 자바 공부
- java
- 맥os 데이터베이스
- 맥 오라클
- 자바 거스름돈구하기
- 자바거스름돈
- 자바공부
- 자바계산
- javareview
- mac oracle
- java거스름돈구하기
- 자바연산자사용
- Mac Sqlplus
Archives
- Today
- Total
목록자바 공부 (1)
DevTagebuch

키보드로 원하는 커피의 값과 투입하려는 금액을 입력하고 거스름돈 구하기. import java.util.Scanner; public class Problem04_03 { public static void main(String[] args) { Scanner s=new Scanner(System.in); int coffee, money, change; System.out.print("얼마짜리 커피를 드시겠어요? ==>"); coffee=s.nextInt(); System.out.print("금액을 투입해주세요. ==>"); money=s.nextInt(); change=money-coffee; System.out.printf("거스름 돈은 %d원 입니다.",change); int c500,c100,c50;..
Java/Do it
2020. 4. 19. 23:15