Skip to content

Instantly share code, notes, and snippets.

@deeunix
deeunix / plurality.c
Last active June 17, 2025 13:54
my Cs50 plurality solution
#include <cs50.h>
#include <stdio.h>
#include <string.h>
// Max number of candidates
#define MAX 9
// Candidates have name and vote count
typedef struct
{
@deeunix
deeunix / mario.c
Created September 13, 2020 04:16
cs50 Mario solution
#include <cs50.h>
#include <stdio.h>
int main(void)
{
int height; //declare int variable Height
do
{
height = get_int("Height: ");
}
@deeunix
deeunix / hello.c
Last active July 1, 2025 16:08
my cs50 hello.c solution
#include <cs50.h>
#include <stdio.h>
int main(void)
{
string name = get_string("What is your name: "); //declare a string with 'name' variable
printf("hello, %s\n", name); //then print the name with %s
}