h7ex1: Simple I/O in C++
You cannot submit for this problem because the homework's deadline is due.
Description
Write a short C++ program which prompts the user for the current year, the user’s current age, and another year. The program should calculate the age that the user was or will be in the second year entered.
Format
Files
You should submit a tar file containing a c++ source file ex1.cpp
Input
three lines, the current year on the first, the current age on the second, and the other year
on the third
Output
one line showing the calculated age
Sample 1
Input
2018
18
2019
Output
19
Limitation
1s, 32MiB for each test case.
Assignment 7
- Status
- Finished
- Problems
- 4
- Open Since
- 2018-07-17 00:00
- DDL
- 2018-07-26 14:00
- Extension
- 240.0 hour(s)