Commit 0482f9b2 authored by Karine's avatar Karine

Exercise_05_28 Version3

parent 9fa80216
......@@ -7,36 +7,36 @@ main()
std::cout << "On the ";
switch (day) {
case 1: std::cout << "first"; break;
case 2: std::cout << "second"; break;
case 3: std::cout << "third"; break;
case 4: std::cout << "fourth"; break;
case 5: std::cout << "fifth"; break;
case 6: std::cout << "sixth"; break;
case 7: std::cout << "seventh"; break;
case 8: std::cout << "eighth"; break;
case 9: std::cout << "ninth"; break;
case 10: std::cout << "tenth"; break;
case 11: std::cout << "eleventh"; break;
case 12: std::cout << "twelfth"; break;
case 1: std::cout << "first"; break;
case 2: std::cout << "second"; break;
case 3: std::cout << "third"; break;
case 4: std::cout << "fourth"; break;
case 5: std::cout << "fifth"; break;
case 6: std::cout << "sixth"; break;
case 7: std::cout << "seventh"; break;
case 8: std::cout << "eighth"; break;
case 9: std::cout << "ninth"; break;
case 10: std::cout << "tenth"; break;
case 11: std::cout << "eleventh"; break;
case 12: std::cout << "twelfth"; break;
}
std::cout << " day of Christmas" << std::endl
<< "my true love sent to me:" << std::endl;
<< "my true love sent to me: " << std::endl;
switch (day) {
case 12: std::cout << "12 Drummers Drumming" << std::endl;
case 11: std::cout << "Eleven Pipers Piping" << std::endl;
case 10: std::cout << "Ten Lords a Leaping" << std::endl;
case 9: std::cout << "Nine Ladies Dancing" << std::endl;
case 8: std::cout << "Eight Maids a Milking" << std::endl;
case 7: std::cout << "Seven Swans a Swimming" << std::endl;
case 6: std::cout << "Six Geese a Laying" << std::endl;
case 5: std::cout << "Five Golden Rings" << std::endl;
case 4: std::cout << "Four Calling Birds" << std::endl;
case 3: std::cout << "Three French Hens" << std::endl;
case 2: std::cout << "Two Turtle Doves and" << std::endl;
case 1: std::cout << "A Partridge in a Pear Tree" << std::endl;
case 12: std::cout << "12 Drummers Drumming" << std::endl;
case 11: std::cout << "Eleven Pipers Piping" << std::endl;
case 10: std::cout << "Ten Lords a Leaping" << std::endl;
case 9: std::cout << "Nine Ladies Dancing" << std::endl;
case 8: std::cout << "Eight Maids a Milking" << std::endl;
case 7: std::cout << "Seven Swans a Swimming" << std::endl;
case 6: std::cout << "Six Geese a Laying" << std::endl;
case 5: std::cout << "Five Golden Rings" << std::endl;
case 4: std::cout << "Four Calling Birds" << std::endl;
case 3: std::cout << "Three French Hens" << std::endl;
case 2: std::cout << "Two Turtle Doves and" << std::endl;
case 1: std::cout << "A Partridge in a Pear Tree" << std::endl;
}
std::cout << std::endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment