Skip to content

Instantly share code, notes, and snippets.

@jibachhydv
jibachhydv / population.c
Created February 1, 2021 06:14
Population Lab CS50x
#include <cs50.h>
#include <stdio.h>
int main(void)
{
// Prompt for the start size
int startSize;
do {
startSize = get_int("Start size: ");
@jibachhydv
jibachhydv / readability.c
Created January 3, 2021 07:24
CS50x 2020 Readability
#include <cs50.h>
#include <stdio.h>
#include <math.h>
#include <ctype.h>
#include <string.h>
#include <math.h>
int main(void)
{
// Get the text
@jibachhydv
jibachhydv / scrabble.c
Last active January 2, 2021 14:59
CS50x Lab 2020, Scrabble
#include <cs50.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
// Points assigned to each letter of the alphabet
int POINTS[] = {1, 3, 3, 2, 1, 4, 2, 4, 1, 8, 5, 1, 3, 1, 1, 3, 10, 1, 1, 1, 1, 4, 4, 8, 4, 10};
int compute_score(string word);