5 : Write a C program to print the following characters in a reverse way.

/*
4. Write a C program to print the following characters in a reverse way. 
Test Characters: 'X', 'M', 'L'
Expected Output:
The reverse of XML is LMX
*/

#include<stdio.h>
main(void)
{
char a='X';
char b='M';
char c='L';
printf("The reverse of XML is %c%c%c",c,b,a);
}



Comments