#include <cstdlib>
#include <conio.h>
#include <iostream>
#include <stdlib.h>
using namespace std;
int main(int argc, char *argv[])
{
int x,ctr;
cout<< "Enter a day: ";
cin>> x;
for (ctr=x;x>0;x--)
for (ctr=1;ctr<=12;ctr++)
{
switch (x)
{
case 1:cout<< "On the first day of Christmas\nMy true love sent to me...\n"; break;
case 2:cout<< "On the second day of Christmas\nMy true love sent to me...\n"; break;
case 3:cout<< "On the third day of Christmas\nMy true love sent to me...\n"; break;
case 4:cout<< "On the fourth day of Christmas\nMy true love sent to me...\n"; break;
case 5:cout<< "On the fifth day of Christmas\nMy true love sent to me...\n"; break;
case 6:cout<< "On the sixth day of Christmas\nMy true love sent to me...\n"; break;
case 7:cout<< "On the seventh day of Christmas\nMy true love sent to me...\n"; break;
case 8:cout<< "On the eight day of Christmas\nMy true love sent to me...\n"; break;
case 9:cout<< "On the ninth day of Christmas\nMy true love sent to me...\n"; break;
case 10:cout<< "On the tenth day of Christmas\nMy true love sent to me...\n"; break;
case 11:cout<< "On the eleventh day of Christmas\nMy true love sent to me...\n"; break;
case 12:cout<< "On the twelfth day of Christmas\nMy true love sent to me...\n"; break;
}
switch (ctr)
{
case 12:cout<< "12 drummers drumming\n";
case 11:cout<< "11 Pipers piping \n";
case 10:cout<< "10 Lords a leaping\n";
case 9:cout<< "9 Ladies dancing\n";
case 8:cout<< "8 Maids milking\n";
case 7:cout<< "7 Swans swimming\n";
case 6:cout<< "6 Geese laying\n";
case 5:cout<< "5 Golden rings\n";
case 4:cout<< "4 Calling birds\n";
case 3:cout<< "3 French hens\n";
case 2:cout<< "2 Turtle doves\n";
case 1:cout<< "And a partridge in a pear tree\n";
}
}
getch();
system("PAUSE");
return EXIT_SUCCESS;
}
can anyone help me fix my program?