//char_compare.cpp
#include <iostream.h>
#include <iomanip.h>
int main()
{
int choice;
char symbol1, symbol2;
choice=1;
while(choice==1)
{
cout<<"\nEnter in the first character: ";
cin>>symbol1;
cout<<"\nEnter in the second character: ";
cin>>symbol2;
}
if (symbol1 > symbol2)
{
cout<<symbol1<<static_cast<char>(symbol1)<<" is larger than "<<symbol2<<static_cast<char>(symbol2);
}
elseif (symbol2 > symbol1)
{
cout<<symbol2<<static_cast<char>(symbol2)<<" is larger than "<<symbol1<<static_cast<char>(symbol1);
}
return 0;
}