On line 24 you do enter the loop only if you already have a valid radius. If radius is not >0, then the program is over.
If you do enter the loop, and you did have a valid letter, then that calculation occurs repeatedly, because neither letter nor radius can change.
Edit: Not repeatedly, for you return, i.e. quit program from within the loop.
If you do enter the loop, but letter was invalid, then you can only change the radius, until it becomes invalid.
Last a note about syntax (that the compiler should have told you already):
The syntax of
if is:
1 2 3 4
|
if ( condition )
{
statements
}
|
You don't have the condition in its rightful place.