4 ms·
Well, other simpler options are: if (input in ['Y', 'y']) then WriteLn('blah blah') else if (input in ['N', 'n']) then WriteLn('blah') else W
by vrruiz 3y ago
Well, other simpler options are:
if (input in ['Y', 'y']) then
WriteLn('blah blah')
else if (input in ['N', 'n']) then
WriteLn('blah')
else
WriteLn('Input invalid');
And:
if (LowerCase(input) = 'y') then
WriteLn('blah blah')
else if (LowerCase(input) = 'n') then
WriteLn('blah')
else
WriteLn('Input invalid');