Aug 21, 2024
printf
in C vs say
in Scratchcode filename.c
make filename
./filename
#include <stdio.h>
int main(void) {
printf("Hello, World!\n");
return 0;
}
void meow(int times) {
for (int i = 0; i < times; i++) {
printf("meow\n");
}
}
if
, else if
, and else
to control flow based on conditions.get_string
, get_int
, etc. from CS50 library for user input.2^31 - 1
).