I am given an assignment to make, here the question is.
Write a program to take two numbers and a character as an input. Ask the users at run time to print larger one if the character input is "L", and smaller number if the character input is "S".
Its running without errors. But I don't know where the problem is I can't get the results.
your first if statement checks if ch is equal to both 'L' and 'l' when it should be OR
if (ch == 'L' || ch == 'l')
same goes with the if statement on line 19