+ 2

Codes only

In as few lines as possible All of, using your preferred languages, write a code that asks for user input (Numbers only 0-26) ,and then convert the numbers into Alphabets Having done this, write a full sentence with those Numbers GOOD LUCK CODERS 🎓🎓 🌞Brains let's see how you handle this one

22nd Jan 2018, 4:47 PM
Dlite
Dlite - avatar
2 Answers
+ 1
@Jeremy I meant create the code itself and then post it
22nd Jan 2018, 5:07 PM
Dlite
Dlite - avatar
0
int n = new Scanner(System.in).nextInt(); if(n > 26) n = 26; else if(n <1) n = 1; System.out.println((char)('A'+n-1));
22nd Jan 2018, 5:05 PM
Jeremy
Jeremy - avatar