Assume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if and only if x is a letter.
.
.
Click on the title for the solution
.
.
.
Click on the title for the solution
.
.
This is the answer:
:
x>='a' && x<='z' || x>='A' && x<='Z'
Comments
Post a Comment