Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Bounty
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
818
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#