Write a program in C language to input any lowercase letter and output it in octal, decimal, hexadecimal or character format.

#include

voidmain()

{charch1;

printf("Please enter a lowercase letter\n");< /p>

scanf("%c",&ch1);

printf("Otal=%o, Decimal=%d, Hexadecimal=%x, Character=%c" ,ch1,ch1,ch1,ch1);

getch();

}

This is the easiest to run.

But it is not robust, and there is no error message when you enter capital letters, etc....