titkiner 활용
2025.03.27 by bumychoi
파이썬 로또 번호 조회기
2025.03.24 by bumychoi
c 물고기 키우기
2025.03.16 by bumychoi
c 배열 (발모제 찾기) 완성코드
c 문자열 배열
2025.03.15 by bumychoi
c array -2
c언어 array
비밀번호 마스터 c언어(함수)
2025.03.14 by bumychoi
from tkinter import *import tkinter as tkfrom tkinter import messagebox# from tkinter import Messagebox window = tk.Tk()window.title("음료수준")window.geometry("500x500")price = {'coffee':3500,"lette":4000,"smoothie":4500,"tea":300}order=[]sum = 0menu_no=0def add(item): global sum global menu_no if item not in price: print("no Drink") this_price = price.get(item) sum += this_pr..
python 2025. 3. 27. 11:12
from tkinter import *from datetime import datetimeimport requestsfrom bs4 import BeautifulSoupwin = Tk() #창 생성def lotto_print(): n=ent.get() url = 'https://dhlottery.co.kr/gameResult.do?method=byWin&drwNo={}'.format(n) req=requests.get(url) soup=BeautifulSoup(req.text,"html.parser") txt=soup.find("div",attrs={"class","win_result"}).get_text().split("\n") num_list = txt[7:13] ..
python 2025. 3. 24. 20:12
#include #include #include //전연변수 int level; int arrayFish[6]; int * cursor; //함수 선언 void initData(); void printfFishes(); void decreaseWater(long elapsedTime); int checkFishAlive(); int main(void) { long startTime = 0; //게임 시작 시간 int num; //물을 줄 어항 번호 long totalElapsedTime = 0; //총 경과 시간 long prevElapsedTime = 0; //직전애 물을 준 시간(물을 준 시간 간격) initData(); //게임 초기화 함수 호출 startTime = clock();//프로그램 실행..
c언어 2025. 3. 16. 14:58
#include #include #include int main(void) { srand(time(NULL)); int treatment = rand() % 4; //진짜 발모제 선택(0~3) printf("\n\n === 자라나라 머리카락 게임 ====\n\n"); int cntShowBottle = 0; int prevCntShowBottle = 0; //3회 테스트 for (int i = 1; i int bottle[4] = { 0,0,0,0 }; do { cntShowBottle = rand() % 2 + 2; // 조합할 약병 개수(0~1 +2-> 2~3) } while (cntShowBottle == prevCntShowBottle); prevCntShowBottle = cntShowBottl..
c언어 2025. 3. 16. 09:46
#include int main(void) { char str[] = "coding"; for (int i = 0; i printf("%c\n", str[i]); } return 0; }
c언어 2025. 3. 15. 13:24
#include int main(void) { int arr[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; for (int i = 0; i printf("%d\n", arr[i]); } return 0; }
c언어 2025. 3. 15. 07:24
#include int main(void){ int subway_array[3]; subway_array[0] = 30; subway_array[1] = 40; subway_array[2] = 50; for (int i = 0; i printf("지하철 %d호차에 %d명이 타고 있습니다.\n", i + 1, subway_array[i]); } return 0; }
c언어 2025. 3. 15. 07:12
#include #include #include int getRandomNumber(int level); void showQuestion(int level, int num1, int num2); void success(); void fail(); int count = 0; int main(void) { srand(time(NULL)); for (int i = 1; i int num1 = getRandomNumber(i); int num2 = getRandomNumber(i); //printf("%d x %d ? \n", num1, num2); showQuestion(i, num1, num2); int answer = -1; scanf_s("%d", &answer); if (answer == -1) { p..
c언어 2025. 3. 14. 19:05