#include <iostream> #include <iomanip> using namespace std; int main() { int year; int leapyear; int month; int output_month; cout << "Calendar Program for Spain " << endl << endl; cout << "Please enter the year: "; cin >> year; } return 0; int month() { if (month ==1) cout<< "The month is January"; else if (month==2) cout<< "The month is February"; else if (month==3) cout<<"The month is March"; else if (month==4) cout<<"The month is April"; else if (month==5) cout<<"The month is May"; else if (month==6) cout<<"The month is June"; else if (month==7) cout<<"The month is July"; else if (month==8) cout<<"The month is August"; else if (month==9) cout<<"The month is September"; else if (month==10) cout<<"The month is October"; else if (month==11) cout<<"The month is November"; else if (month==12) cout<<"The month is December"; else cout<<" number must be between 1-12."; int days[] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; int leapyear() if(year%400 ==0 || (year%100 != 0 && year%4 == 0)) { isleapyear=true; else isleapyear=false; } output_month() cout << "\n February Sun Mon Tue Wed Thu Fri Sat\n"; } } return 0;</iomanip></iostream>
no_in_month
int
string
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)