Explanation:-
Reading a string form backward is similar to reverse the string here I use a For Loop for finding the length of the string or we can use string.length() function depend upon your choice. After calculating the size of the string with the second For Loop printing the string from last-1 index to greater or equal to zero indexes. this is a simple way for reading a string from backward or we can use a simple inbuilt function for made program easier but using an inbuilt library function for beginners is not a good practice. First beginners know how they can build a logic and implement the existing problem after that for saving the time and space beginners can use an inbuilt library function.
Output:
Enter a String: nerdutella
String From Backward is below
alletudren
need an explanation for this answer? contact us directly to get an explanation for this answer