coding_giants

l3 task

Feb 13th, 2024
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //create a function named yearsTillRetiring,
  2.  
  3. //create a constant named age to which you assign the participant's age, use the function participantAge() from the previous task
  4.  
  5. //create a constant named retirement to which you will assign a number symbolizing the age remaining until retirement
  6.  
  7. //add a conditional statement to display e.g. Alex retires in 40 years where Alex and 40 are variables
  8. //for a person who is already retired should display, for example, Alex is already retired
  9.  
  10. //call the function yearsTillRetiring() passing the necessary parameters to it
Add Comment
Please, Sign In to add comment