aboutsummaryrefslogtreecommitdiff
path: root/3c/4.13.3Exercises/4.13.3Execises/4.13.3Execises.cpp
blob: 6afbbaeda7aed6131b054b33803bf179439811b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 4.13.3Execises.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include <iostream>
using namespace std;

int main()
{
	const int DAYS_PER_YEAR = 365;
	int ageDays, ageYears;
	cout << "How old are you in full years: ";
	cin >> ageYears;

	ageDays = ageYears * DAYS_PER_YEAR;
	cout << "You are " << ageDays << " days old.";
	return 0;
}