본문 바로가기

WIL(What I Learned)

(78)
M.Fattah Discrete Mathematics 1.Sets workbook - 2 collections of subsets if and only if Partition of S empty set
M.Fattah Discrete Mathematics 1.Sets workbook - 1 The power set is a set which includes all the subsets including the empty set and the original set itself. It is usually denoted by P. Z denotes the set of integers An integer is the number zero (0), a positive natural number (1, 2, 3, etc.) or a negative integer with a minus sign (−1, −2, −3, etc.). Cardinality is the number of elements in a given mathematical set The power set is the set that ..
파이썬 == 연산자 활용 예시 x = 5 y = 3 print(x == y) # returns False because 5 is not equal to 3 (출처: w3schools)
K-mooc 자료구조 및 알고리즘 2주차 1차시 퀴즈만들기 문제: 다차원 배열을 저장하는 방법 중 행우선순서의 두가지 주소계산법을 적으시오. 답: 2차원 배열: A[upper0][upper1 ] 3차원 배열: A[upper0][upper1][upper2] 참고:
k-mooc 자료구조 및 알고리즘 1주차 2차시 퀴즈 만들기 문제: 점근표기법의 세 가지 방법을 명칭과 함께 그리스문자로 쓰시오. 답: 빅오(O), 오메가(Ω), 세타(Θ).
Chapter.2 Programming Projects 1. Write a program that uses printf to display the following picture on the screen: * * * * * * * * my sol) #include int main() { printf(" *\n"); printf(" *\n"); printf(" *\n"); printf("* *\n"); printf(" * *\n"); printf(" * \n"); return 0; } 2. Write a program that computes the volume of a sphere with a 10-meter radius, using the formula v = 4/3πr^3. Write the fraction 4/3 as 4.0f/3.0f (Try writ..
Chapter 2. 연습문제 3. Condense the dweight.c program by (1) replacing the assignmetns to height, length, and width with initializers and (2) removing the weight variable, instead calculating (volume + 165) / 166 within the last printf. 정답: #include int main(void) { int height = 8 , length = 12 , width = 10, volume; volume = height * length * width; printf("Dimensions: %dx%dx%d\n", length, width, height); printf("V..
VSCode C++ 사용자가 입력하기 https://stackoverflow.com/a/49846389/15011104 Visual Studio Code: Take Input From User Currently, I'm trying to write C/C++ program in Visual Studio code. For this I've installed two extensions: C/C++ & C++ Intellisense As per the documentation, the debugging facility is not ava... stackoverflow.com Code -> Preference -> Settings 들어가서 Code-runner: Run In Terminal에 Whether to run code in Integrat..