본문 바로가기
Programming/CS 50

[CS 50] 네이버 부스트코스 시작!

by 그렉그의 2023. 2. 20.

CS 50

1. string answer = get_string("what's your nameˀ?ˀˀ?ˀ);

 = assign the variable from right to left

2.  string answer = get_string("what's your nameˀ?ˀˀ?ˀ);

print("hello, %s \n", answer);

 

 

making hello world program

3. boolean expression: true or false question

char = single character ex, y or n

 

4. forever= while 

 

5. int i=0;

make float

./float

#include <cs50.h>
#include <stdio.h>

int main(void)

{ float price = get_float ("what's your price?\n");
printf("Your total is %f", price * 1.0625
 
make);
 
 
 
 
ma
}

'Programming > CS 50' 카테고리의 다른 글

[퀵 정렬] 개념 정리  (0) 2023.03.24
[cs50] Day 17  (0) 2023.02.24