TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ravi Yadav
NA
307
245k
how to reverse string without using predefined function
Aug 26 2016 6:04 AM
using
System;
namespace
ConsoleCRM
{
class
Ravishanakr
{
static
void Main(
string
[] args)
{
Console
.WriteLine("
Enter string by keyboard
");
string
_OldString =
Console
.ReadLine();
string
_NewString =
string
.Empty;
int
_Length = 0;
foreach
(
char
_Char
in
_OldString)
_Length++;
for
(
int
I = _Length - 1; I >= 0; I--)
{
_NewString = _NewString + _OldString[I];
}
Console
.WriteLine(_NewString);
Console
.ReadLine();
}
}
}
Output
Reply
Answers (
1
)
JSON with C#.Net
Passing the Cityid using for each loop but only last city id