> (C++) How do I write an if/else statement to do this?

(C++) How do I write an if/else statement to do this?

Posted at: 2014-12-18 
har c;

if(c=='P' || c=='Y' || c=='M' ||c=='J'||c=='O'||c=='C')

char c;

if((c>='A' && c<='Z') || (c>='a' && c<='z'))

{

// valid letter

}

else

{

//not a letter

}