i am trying to make a program that takes a string as an input from the user and then prints it in reverse order. but i'm having some problems. here is the source code that i wrote:
Code:#include <stdio.h> int main () { char a[10]; int i; for (i=0;i<10;i++) { printf("Enter a String:\n"); scanf("%c",&a[i]); } printf("You entered: %c\n",a[i]); for (i=9;i>=0;1--) { printf("The reverse is: %c",a[i]); } }