Answered step by step
Verified Expert Solution
Question
1 Approved Answer
eclaring and Initializing C + + Variables Declaring and Initializing C + + Variables NewAge.cpp + 1 / / This program calculates your age in
eclaring and Initializing C Variables Declaring and Initializing C Variables NewAge.cpp This program calculates your age in the year Input: None Output: Your current age followed by your age in Declare an integer variable named myNewAge #include using namespace std; int main I Declare and initialize your variables here myNewAge myCurrentAge currentYear; Declare and initialize an integer variable named myCurrentAge. Initialize this variable with your current age. Declare and initialize an integer variable named currentYear. Initialize this variable with the value of the current year. Use four digits for the year. cout My Current Age is myCurrentAge endl; cout "I will be myNewAge in endl; return; w Type here to search
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started