Hello im writing a program that asks the user to input a number 1-10 and will transform it into the roman numeral of that number but it seems that its not after the user inouts the number nothing will output, can someone help me fix this?
#include <iostream>
#include<iomanip>
usingnamespace std;
int main()
{
int choice;
cout << "Please enter a number between 1 through 10 and press enter" << endl;
cin >> choice;
switch (choice)
{
case'1': cout << " The roman numeral of 1 is I" << endl;
break;
case'2': cout << " The roman numeral of 2 is II" << endl;
break;
case'3': cout << " The roman numeral of 3 is III" << endl;
break;
case'4': cout << " The roman numeral of 4 is IV" << endl;
break;
case'5': cout << " The roman numeral of 5 is V" << endl;
break;
case'6': cout << " The roman numeral of 6 is VI" << endl;
break;
case'7': cout << " The roman numeral of 7 is VII" << endl;
break;
case'8': cout << " The roman numeral of 8 is VIII" << endl;
break;
case'9': cout << " The roman numeral of 9 is IX" << endl;
break;
case'10': cout << " The roman numeral of 10 is X" << endl;
break;
}
system("PAUSE");
return 0;
}