Create a program that asks the user to enter a number. The program should print the alphabet letter corresponding with the number (1-26):
This is the code i have so far: (not sure if I have to user an if.. else loop but I feel as though that would be inefficient )
I would go like Ritchie said and increment the charachter by the value.
Start off with setting a charachter to 'a'. Ask the user for which letter he wants and use that number as boundery for a for-loop , increment the charachter each run, after the loop you print the char.
It's good to be able to use someting, it's better to understand how it works.