Question: 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
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
