일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Project
- Python
- 코딩테스트
- 개발자
- 자바정리
- 자바
- 사물인터넷
- 코테
- 코딩
- 빅데이터
- frontend
- 코딩독학
- 코스닥
- 개인프로젝트
- 백준
- Reflex
- backend
- 주가예측
- 프로그래밍
- 프로그램
- 모의 주식
- java
- 프로그래머스
- C++
- 풀스택프레임워크
- SNS
- 개발
- 자바독학
- 이웃한 칸
- java정리
- Today
- Total
목록코딩 study (49)
Creative Code
# 사용자로부터 이름 입력 받기 print("이름을 입력하세요 : ") name = input() print("Hello!", name, "nice to meet you~") # 사용자로부터 키 입력 받기 (실수로 변환) print("키를 입력해주세요 : ") tall = float(input()) print("당신의 키는", tall, "입니다.") # 사용자로부터 섭씨 온도 입력 받기 print("변환할 섭씨 온도를 입력해주세요 : ") celsius = input() fahrenheit = float(celsius) * 1.8 + 32 print("섭씨온도 :", celsius) print("화씨온도 :", fahrenheit) # 리스트 선언과 사용 colors = ['red', 'blue', '..
# 정수 변수 a와 b를 선언하고 값을 할당 a = 3 b = 4 # a와 b를 출력 print(a, b) # 실수 변수 a와 b를 선언하고 값을 할당 a = 1.3 b = 2.2 # a와 b를 출력 print(a, b) # 문자열 변수 a와 b를 선언하고 값을 할당 a = "ABC" b = "1092" # a와 b를 출력 print(a, b) # 부울 변수 a와 b를 선언하고 값을 할당 a = True b = False # a와 b를 출력 print(a, b) # 정수 변수 a와 b를 선언하고 값을 할당 a = 52 b = 7 # 더하기, 빼기, 곱하기, 나누기, 지수 계산, 정수 나누기, 나머지 계산 print(a + b) print(a - b) print(a * b) print(a / b) prin..
#include #include #include using namespace std; // 16가지 ANSI 컬러를 열거형으로 정의 enum color16 { Black = 0, Blue, Green, Cyan, Red, Magenta, Brown, Lightgray, Darkgray, Lightblue, Lightgreen, Lightcyan, Lightred, Lightmagenta, Yellow, White }; // 콘솔 창 내의 커서 위치를 x, y 좌표로 이동하는 함수 정의 void gotoxy(int x, int y) { COORD pos = { x, y }; // COORD 구조체를 사용하여 커서 위치를 설정합니다. SetConsoleCursorPosition(GetStdHandle(STD..
#include #include #include using namespace std; // 콘솔 창 내의 커서 위치를 x, y 좌표로 이동하는 함수 정의 void gotoxy(int x, int y) { COORD pos = { x, y }; // COORD 구조체를 사용하여 커서 위치를 설정합니다. SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos); // 커서 위치를 변경합니다. } int main() { gotoxy(5, 10); // (5, 10) 위치로 커서 이동 cout
#include #include #include using namespace std; int main() { // 각 문자를 출력하고 0.3초씩 쉬는 부분 cout