my input "JOHN F KENNDY " how to display that input in following format "KENNEDY JOHN F "

Gow.net
Posted by Gow.net under C# category on | Points: 40 | Views : 1620
InPut :JOHN F KENNDY

 string name = "John F Kenndy";
string[] str=name.Split(' ');
Console.WriteLine("" + str[2] + "" + str[0] + "" + str[1]);


OutPut :KENNEDY JOHN F

Comments or Responses

Posted by: Akiii on: 1/24/2012 Level:Bronze | Status: [Member] | Points: 10
this is nice...
keep posting !

Thanks and Regards
Akiii

Login to post response