Prompt for and receive your age in years and months and calculate and display your age in months. If the calculated months figure is more than 500, three asterisks should also appear beside the month figure
1
Expert's answer
2013-05-30T06:14:10-0400
#include <iostream>
using namespace std;
int main() { cout << "enter& your age in years and months" << endl; int a,b,n,sum; cout << "enter& your age in years " << endl; cin>>a; cout << "and enter& your age in& months" << endl; cin>>b;
Comments
Leave a comment