Question: in C language. I got the basics of the program. but i need to be able to do the following : 1. be able to

 in C language. I got the basics of the program. buti need to be able to do the following : 1. be

in C language. I got the basics of the program. but i need to be able to do the following :

1. be able to enter a first and last name

2. only keep the first letter and last letter of the first and last names.

3. remove all the spaces

4. do all things in a loop so it will continue to ask for the user's name over again.

ex:

input: Sandra Lee

output: SaLe

input: they like computer science

output: tylecrse

can you please explain everything so I may build and understand from it, thank you!

8. 9 10 11 12 */ Evoid Remove Spaces (char* name) { const char* d = name; do { while (*d ') { ++d; } } while (*name++ = *d++); 13 14 15 16 17 18 19 20 Fint main() { char name[100]; printf("what is your name? :"); scanf("%s", name); 21 22 23 24 25 int i = strlen(name)-1; RemoveSpaces(name); printf("%c_%c", name[o], name[2]); return 0; 26 27 what is your name? : daniel d2 Process finished with exit code 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!