Question: Write a C program where the user will input a letter (A-Z) and the program will return the corresponding digit [User enters A so the

Write a C program where the user will input a letter (A-Z) and the program will return the corresponding digit [User enters A so the program should output 2]. The user should be able to input lowercase or uppercase. To do this use toupper function to convert the letter.
START READ LETTER LETTER = 'A' 11 LETTER = B' 11 LETTER == TRUE LETTER D' 11 LETTERE lI LETTER = 'F' TRUE FALSE PRINT 2 LETTER = 'G, 11 LETTER H 11 LETTER ='I' TRUE LETTER = 'J' 11 LETTER = K 11 LETTER-L PRINT 3 PRINT 4 PRINT 5 LETTERM II LETTER = 'N, 11 LETTER-O TRUE PRINT 6 FALSE PRINT 7 TRUE LETTER 'Q, 11 LETTER RII LETTER == 'S' PRINT 8 TRUE LETTER = T 11 LETTER-U'II LETTER == 'V PRINT PRINT LETTER TRUE LETTER = 'X' ll LETTER = "Y'll LETTERZ END Page 3 of 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
