Ask 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 months is 384.

+1
Answers (1)
  1. 14 July, 03: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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers