Ask Question
16 November, 09:56

Write a C+ + program that asks the user to enter his age. The program then should display the age in months:

Enter your age: 29

Your age in months is 384.

+3
Answers (1)
  1. 16 November, 10:26
    0
    Answer and Explanation:

    It's actually pretty easy, keep in mind you need to import the following libraries at the beginning of the code:

    #include

    #include

    #include

    using namespace std;

    int main () {

    int age;

    int age_m;

    cout<< ("enter your age");

    cin>>age;

    age_m=age*12;

    cout<< ("Your age in months is: ");

    cout<
    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a C+ + program that asks the user to enter his age. The program then should display the age in months: Enter your age: 29 Your age in ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers