admin@onlinelearningcenter.in (+91) 7 999 01 02 03

WAP to swap First Name and Last Name of a user.

Suraj Ghimire
42 Posts

Given the Full Name of User, Interchange the first and last name.

Eg:

Input: Suraj Prasad Ghimire

Output: Ghimire Prasad Suraj

 

Input: Suraj Ghimire

Output: Ghimire Suraj

 

Input:Vangipurapu Venkata Sai Laxman

Output: Laxman Venkata Sai Vangipurapu

 

 

Published By : Suraj Ghimire
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin