Created
June 23, 2022 15:13
-
-
Save DeclanGas/6df9784c8472505aac65cfda8d5b76de 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> | |
#define ONE_YEAR 1 | |
#define age a | |
int main(void) | |
{ | |
// Prompt user for age | |
int age = get_int("Enter your age: "); | |
// My age next year | |
printf("Next year I'll be %i years old.\n", a + ONE_YEAR); | |
// My age in 10 years | |
printf("In 10 years, I'll be %i!\n", a + 10); | |
// My age in 50 years! | |
printf("In 50 years, I'll be %i! Wow!\n", a + 50); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment