Created
April 27, 2016 20:44
-
-
Save barisesen/5e3fcbec2681cb081770d0652a050d58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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