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
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Find Modified Word From String In C#
Bikesh Srivastava
Aug 24
2016
Code
702
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
using
System;
using
System.Net.NetworkInformation;
using
System.Net;
using
System.Net.Sockets;
using
System.Text.RegularExpressions;
namespace
Example
{
class
Program
{
static
void
Main()
{
string
s1 =
"When you are writing server code you can never be sure what the IP address you see is refereeing to.In fact some users like it this way."
;
string
s2 =
"When you are wrting server code yu cannn never be sure what the IP address you see is refering to.In fact some users like it this way"
;
string
[] tempArr1 = s1.Split(
' '
);
string
[] tempArr2 = s2.Split(
' '
);
int
counter = 0;
for
(
int
i = 0; i < tempArr1.Length; i++)
{
if
(tempArr1[i] != tempArr2[i])
{
Console.WriteLine(tempArr1[i] +
", "
+ tempArr2[i]);
counter++;
}
}
Console.WriteLine(
"Total Modified Word::"
+counter);
Console.ReadLine();
}
}
}
Find Modified Word
String In C#
C#