plz post code in c language also.............

On Sun, Aug 7, 2011 at 8:26 PM, Kunal Yadav <[email protected]> wrote:

> #include<stdio.h>
> #include<iostream>
> #include<string.h>
> #include<stdlib.h>
> using namespace std;
> int main()
> {
>    char s[1000];
>    cin>>s;
>    int start=0;
>    int end=strlen(s);
>    cout<<end<<endl;
>    int end1=end;
>    while(start<=end)
> {
>         char e;  //swap
>         e=s[start];
>         s[start]=s[end];
>         s[end]=e;
>        start++;
>        end--;
>    }
>    for(int i=0;i<=end1;i++)
>    cout<<s[i];
>    return 0;
>
> }
>
>
> On Sun, Aug 7, 2011 at 8:24 PM, Rajesh Kumar <[email protected]>wrote:
>
>>
>>
>> --
>> Regards
>> Rajesh Kumar
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
> Regards
> Kunal Yadav
> (http://algoritmus.in/)
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Regards
Rajesh Kumar

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to