answersLogoWhite

0


Best Answer

Get the string from user , then U Split the string with space and put in a string array .

Then Find Length of string array , Take first letter of each element in array, Except last. Assigned those to a string, then Fetch Last element of an array, Add it With that String.

That's it.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to input a string in the form of name and swap the initials of the namefor example enter a string is rohit Kumar sharma and should be printed RK Sharma?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a C program to print initials?

printf ("initials");


How do you write the pseudo code for a program that print initials?

Example: start ask the name for each word . print first letter stop


What do the initials EAP stand for?

Employee Assistance Program


What do the initials CIW stand for?

The initials CIW stand for Certified Internet Webmaster which is a type of software and program for private, executive and corporate users on the Internet.


What do the initials EQIP stand for?

EQIP is an acronym for the Environmental Quality Incentives Program. This program began in 2002 and aims to improve environmental considerations in production.


Where can one get professional business cards printed?

Professional Cards can be printed from retail stores such as Kinkos and FedEx but can also be directly printed from a home printer if it is compatible with a business card program.


What do initials MPVD stand for?

MPVD stands for "multichannel video program distributors", meaning cable and sattelite providers.


Example of the responsibility program?

Sponsoring orphans and bright kids is an example of a responsibility program.


How do you get an output of a c plus plus program to be printed?

See sources and related links below.


Give a business example of how loops can be beneficial in a program?

Give a business example of how loops can be beneficial in a program?


A spreadsheet program is one example of an application program?

yes


Is a spreadsheet program is one example of an application program?

yes