โ Back to Structs
Question 333
Age from Birth Year
Age from Birth Year
Astruct Personstores abirthYearof 1990. Given that the current year is 2026, compute and print the person's age: 36 SubtractbirthYearfromcurrentYear. 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.