Jul 15, 2024
https://cs50.dev
)#include <stdio.h>
int main(void) {
printf("Hello, world\n");
}
#include <stdio.h>
, int main(void)
, printf
, and \n
.int counter = 3;
counter = counter + 1;
counter += 1;
counter++;
if (x < y) {
printf("x is less than y\n");
} else if (x > y) {
printf("x is greater than y\n");
} else {
printf("x is equal to y\n");
}
int counter = 3;
while (counter > 0) {
printf("meow\n");
counter--;
}
for (int i = 0; i < 3; i++) {
printf("meow\n");
}
while (true)
void meow(int n) {
for (int i = 0; i < n; i++) {
printf("meow\n");
}
}
int main(void) {
meow(3);
}
#include <cs50.h>
)
get_string()
, get_int()
, get_float()
, get_char()
ls
, cd
, mkdir
, mv
, rm
, cp
1/3
not accurately represented beyond a certain number of decimal places.