Ask Question
7 August, 06:34

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.

+4
Answers (1)
  1. 7 August, 07:04
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers