Created
February 12, 2024 19:46
-
-
Save jmichalenko/886be4ffe7056b9711b23148663dce0d to your computer and use it in GitHub Desktop.
CS50 Labs variables starter code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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