#include<stdio.h>
#include<string.h>
main()
{
char STR1[100];
int i;
clrscr();
printf("Please input a STRING.\n");
gets (STR1);
printf("\n%s is displayed in reverse form as:\n",STR1);
for(i=strlen(STR1)-1; i>=0 ; i--)
{
printf("%c",STR1[i]);
}
getch();
}
chescarleta18 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
yellowSnow commented: Persistance against a never ending wad of crap posts. +2
Tom Gunn 1,164 Practically a Master Poster
chescarleta18 0 Newbie Poster
yellowSnow commented: Other users are trying to help you with the rules of the forum. You're just luck Mr Gunn is a good guy. +0
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.