CJCoding With Joseph

Age from Birth Year

A struct Person stores a birthYear of 1990. Given that the current year is 2026, compute and print the person's age:

36

Subtract birthYear from currentYear. Do not hardcode 36. There is no trailing newline.

Expected Output:

36
Topics:
Structs
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.