Saturday, July 13, 2019

String Revers Number

String Revers Number:

using string revers number


#include<stdio.h>
#include<conio.h>
#include<string.h>

void main()
{
char str[20];
int i,length;
clrscr();
printf("Enter the String Number :-");
scanf("%s",&str);

length=strlen(str);
for(i=length-1;i>=0;i--)
{
printf("%c",str[i]);
}
getch();
}

Output:





EmoticonEmoticon