C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Reversing Words in a Sentence using c#
WhatsApp
Midhun Tp
Aug 10
2016
849
0
0
protected
void
Page_Load(
object
sender, EventArgs e)
{
string
inputsent =
"This is an simple example of sentence reversing"
;
string
[] words = inputsent.Split(
' '
);
Array.Reverse(words);
Response.Write(
string
.Join(
" "
, words));
}
ASP.NET
Up Next
Reversing Words in a Sentence using c#