Given an char variable last that has beeninitialized to a lowercase letter, write a loop that displays allpossible combinations of two letters in the range ‘a’ through last.The combinations should be displayed in ascending alphabeticalorder:
For example, if last was initialized to ‘c’ the output should beaa
ab
ac
ba
bb
bc
ca
cb
cc
IN C PROGRAMMING
Expert Answer
An answer will be send to you shortly. . . . .