Skip to content

Instantly share code, notes, and snippets.

@barisesen
Created April 27, 2016 20:44
Show Gist options
  • Save barisesen/5e3fcbec2681cb081770d0652a050d58 to your computer and use it in GitHub Desktop.
Save barisesen/5e3fcbec2681cb081770d0652a050d58 to your computer and use it in GitHub Desktop.
public static int uzunluk(string cumle)
{
cumle = cumle.Trim();
string[] kelimeler = cumle.Split(' ');
int max = 0;
foreach (var item in kelimeler)
{
if(item.Length > max)
max = item.Length;
}
return max;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment