#!/bin/bash

# Prompt user for input
echo "Enter your name: "
read NAME
echo "You entered: $NAME"

echo "Enter your birth year: "
read BIRTH_YEAR
echo "You entered: $BIRTH_YEAR"

echo "Enter the current year: "
read CURRENT_YEAR
echo "You entered: $CURRENT_YEAR"

# Calculate age
AGE=$((CURRENT_YEAR - BIRTH_YEAR))

# Display the result
echo "I am $AGE years old."