Skip to content

Instantly share code, notes, and snippets.

@jmichalenko
Created February 12, 2024 19:46
Show Gist options
  • Save jmichalenko/886be4ffe7056b9711b23148663dce0d to your computer and use it in GitHub Desktop.
Save jmichalenko/886be4ffe7056b9711b23148663dce0d to your computer and use it in GitHub Desktop.
CS50 Labs variables starter code
#include <cs50.h>
#include <stdio.h>
int main(void)
{
// Let's assume my age is 17
printf("Right now I'm %i years old.\n", 17);
// My age next year
printf("Next year I'll be %i years old.\n", 17 + 1);
// My age in 10 years
printf("In 10 years, I'll be %i!\n", 17 + 10);
// My age in 50 years!
printf("In 50 years, I'll be %i! Wow!\n", 17 + 50);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment