Aug 20, 2024
make
command.printf
function in C as an equivalent to Scratch's "say" block.#include <stdio.h>
, int main(void)
, printf("Hello, world\n");
printf
(output), get_string
(input)string
, int
.int
(integer), float
(decimal), string
(text), char
(single character).get_string
, get_int
from CS50 library.printf
and format specifiers (%s
, %d
, %f
).if
, else if
, else
.<
, >
, ==
.&&
(logical AND)||
(logical OR){}
.while
loops, consists of initialization, condition, and increment.for(int i = 0; i < 3; i++)
to repeat three times.meow
function to print "meow" multiple times.