Question: Task 1 : Initialize an integer variable named currentAge. Initialize this variable with your current age. Task 2 : Initialize an integer variable named currentYear.
Task : Initialize an integer variable named currentAge. Initialize this variable with your current age.
Task : Initialize an integer variable named currentYear. Initialize this variable with the value of the current year. Use four digits for the year.
Task : Execute the program.
An example of the program is shown below:
My Current Age is
I will be in
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
