Problem - 10 Solution
Problem - 10 Solution
#include <iostream>
using namespace std;
TotalDays += Day;
return TotalDays;
}
short ReadDay()
{
short Day;
cout << "\nPlease enter a Day? ";
cin >> Day;
return Day;
}
ProgrammingAdvices.com
© Copyright 2022
Problem # 10/4 Solution Using C++
short ReadMonth()
{
short Month;
cout << "\nPlease enter a Month? ";
cin >> Month;
return Month;
}
short ReadYear()
{
short Year;
cout << "\nPlease enter a Year? ";
cin >> Year;
return Year;
}
int main()
{
short Day = ReadDay();
short Month = ReadMonth();
short Year = ReadYear();
cout << "\nNumber of Days from the begining of the year is "
<< NumberOfDaysFromTheBeginingOfTheYear(Day, Month, Year);
system("pause>0");
return 0;
}
ProgrammingAdvices.com
© Copyright 2022