Write a program in C to reverse a given string. The program should take a string as input, reverse its contents, and then display the reversed string as output.
- Assume the string will not exceed 100 characters.
- Implement the string reversal logic without using any built-in functions like strrev. Instead, use loops and basic string manipulation.
- After reversing the string, print the reversed string.
- Input
hello
- Output
olleh
- Input
C programming
- Output
gnimmargorp C