Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 1 : Initialize an integer variable named currentAge. Initialize this variable with your current age. Task 2 : Initialize an integer variable named currentYear.

Task 1: Initialize an integer variable named currentAge. Initialize this variable with your current age.
Task 2: Initialize an integer variable named currentYear. Initialize this variable with the value of the current year. Use four digits for the year.
Task 3: Execute the program.
An example of the program is shown below:
My Current Age is 29.
I will be 65 in 2050.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Power Bi And Azure Integrating Cloud Analytics For Scalable Solutions

Authors: Kiet Huynh

1st Edition

B0CMHKB85L, 979-8868959943

More Books

Students also viewed these Databases questions