본문 바로가기

분류 전체보기

(15)
[Day 7] Quadratic expression for C Programming In this class, I learned about quadratic expression for specific values. Computers utilize binary, octal, and hexadecimal numbers, and their purpose of use varies depending on the pros and cons of the expression method. 1) Binary expression: 0 or 1 2) Octal expression: 0 ~ 7 3) Hexadecimal expression - 0 ~ 9 and A ~ F are used - Using %X for printing the value with printf() function And here's a..
[Day 6] ASCII Code: How to represent letter in C Language? In this class, I learned about how to represent the letter in the C language. ASCII code is a representation method for expressing the letter with a form of number. For example, capital "A" is exchanged as 65, and "a" is exchanged as 97. Therefore, if you write a code as "printf("%c", a)", computer input a number 97, not a letter 'a'. To find a specific letter, look for the letters in the link b..
[Day 5] Standard input/output functions: scanf() and printf() In this class, I learned about standard input and output functions including scanf() and printf() in C language. "scanf()" function is basic input function that can receive users' input and "printf()" function is basic output function. These input/output funtions can be used by declaring a header file . And we can declare this header file by adding the sentence #include at the beginning of the c..
[Day 4] Character variable : To represent a character type In this class, I learned how to express single characters and strings, and received characters as char variables to express them as single characters and strings. 1. Two ways of expressing letters. 1) Constant: String constant (fixed string value) 2) Variables: Used when you want to change the value during execution 2. Characteristics of Character Variables 1) Character variables use char type 2..
[Day 3] Numeric variables : To represent a number type In this class, I learned how to express numeric variables and constants (long long, double, float, etc.) in numerical types, and received two numbers as int and double variables to practice quadratic operations. 1. Types of Variables - Integer: short, int, long, long long, and so on ex) int A = 100 - Real Number: float, double, double long, and so on ex) float A = 1.2 #include #include /* run th..
[Day 2] Output function in C language: printf() In this class, I learned about the basic output function to print the context (e.g., numbers, characters, symbols). In order to output numbers, symbols, etc., it can be used in parentheses of printf(). Remember to always put a semicolon at the end of the code. 1. Text #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(i..
[Day 1] Print "Hello C World" for confirming the IDE settings In this class, I learned about the basic steps to start language "C". To this end, the "Dev C++" program was first installed to comply with the integrated development environment (IDE). To verify that the installation was completed normally, I tried to output the text "Hello C World". #include #include /* run this program using the console pauser or add your own getch, system("pause") or input l..