Question: Intro to C++ Code : #include #include using namespace std; int main() { const int MonthDays[] = {31, 59, 90, 120, 151, 181, 212, 243,
Intro to C++
Code :
#include
int main() { const int MonthDays[] = {31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365}; const string MonthName[] = {"jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"}; int day; int month=0; while(1) { month=0; cout>day; cout365){ cout31) cout
Error Message :
![{ const int MonthDays[] = {31, 59, 90, 120, 151, 181, 212,](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3cb542bbb7_33166f3cb53a585b.jpg)
Given a number, calculate how many years into the future it is, and what date. Assume no leap years For example: Please enter a day of the year (0 to exit): 1 jan 1 Please enter a day of the year (O to exit); 365 dec 31 Please enter a day of the year (0 to exit): 366 jan 1 Please enter a day of the year (0 to exit): 0 Thanks for playing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
