#include<iostream>
int difference(int a, int b);
int main()
{
int currentYear = 2018;
int graduationYear = 2022;
difference(currentYear,graduationYear);
std::cout << "The year is : " << currentYear << " \nYou graduate in year : "<< graduationYear<< " You have : "<<difference << " years to graduate.\n";
}
int difference(int a,int b)
{
int theDifference;
theDifference = (a-b);
return theDifference;
}
-- INSERT -- 1,19 Top