labAssignment4c - // else if statement for all the months...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 // lab assignment #4 How many days in a month. #include <iostream> int main() { string month s cout << "Lab Assignment 4\t CSE 1020.301" << endl << "Kasey Scott \t kaseyscott@my.unt.edu" << endl cout << "Please enter the current month" << endl cin >> month c // if statement for all the months that have 31 days. if(month == "january" || month == "march" || month == "may" || month == "july" || month == "august" || month == "october" || month == "december") cout << month << "has 31 day." << endl
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: // else if statement for all the months that have 30 days. else if(month == "april" || month == "june" || month == "september" || month == "november") cout << month << "has 30 days." << endl // else if statement for the month that has 28 days. else if (month == "february") cout << month << "has 28 days." << endl // else statement for anything other than a month. else cout << month << "is invalid." << endl return 0 }...
View Full Document

This note was uploaded on 03/05/2010 for the course DSDDDDDDD dddddfvvc taught by Professor Cxcseef during the Spring '10 term at École Normale Supérieure.

Ask a homework question - tutors are online