like this : string fullname = "George Kings David"; var names = fullname.Split(' '); string firstName = names[0]; string middleName = names[1]; string lastName = names[2]; Console.WriteLine($"First name is :{firstName}"); Console.WriteLine($"Middle name is :{middleName}"); Console.WriteLine($"Last name is :{lastName}"); Console.ReadLine();
Get a 30 Day Free Trial of Amazon Prime if you don't have it already! - amzn.to/35ODPUU
Exactly the information I needed. Thank you for a great tutorial!
What if a String is unknown, I mean if we are taking a String through ReadLine?
Damn, this video was a life saver, thanks bruf
Nice explanation!
Thanks for the video!
Thanks dude!
that was prefect👍🏻
Thanks.
font size was great 4 me
and how do i get the part of a number?
But how to separate any full name into last name, first name and middle name?
like this : string fullname = "George Kings David";
var names = fullname.Split(' ');
string firstName = names[0];
string middleName = names[1];
string lastName = names[2];
Console.WriteLine($"First name is :{firstName}");
Console.WriteLine($"Middle name is :{middleName}");
Console.WriteLine($"Last name is :{lastName}");
Console.ReadLine();
Thanks sir
Thanks
Too small font size👎
wqhat if there is some duplicate number
too small...can't able to view it on low resolution👎
zoom the fuck in
Si vedesse qualcosa...