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);
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 |