Created
June 23, 2022 14:53
-
-
Save DeclanGas/df2bfbf55be95722e2870f5fc02faf77 to your computer and use it in GitHub Desktop.
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) | |
{ | |
int age = get_int("Enter Your Age: "); | |
// Let's assume my age is 17 | |
printf("Right now I'm %i years old.\n", age); | |
// My age next year | |
printf("Next year I'll be %i years old.\n", age + 1); | |
// My age in 10 years | |
printf("In 10 years, I'll be %i!\n", age + 10); | |
// My age in 50 years! | |
printf("In 50 years, I'll be %i! Wow!\n", age + 50); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment