Does the first name HAVE TO be given to the program first? If the order could be changed to lastname given first, then firstname, it would be simpler.[/QUOTE]
Assignment.
You are to ask a user for first name followed by last name.
Example:
Lisa Smith
Your program should get this data and make an e-mail like this
[email protected]
It's stupid, right? He won't let those of us who know more than he has taught to use what we know! He wants us to use a do while loop, I think. And the getchar() function. If you see in my code, I think I am to replicate what I used for the last name (which printed perfectly), for the first name as well. However, when I replicate the do while loop, I get stuck in a static but infinite loop, so whenever I input something, nothing happens, and the program keeps running. This is what the assignment says. While he doesn't say anything about not using arrays, he said we can only use what we have learned by now and the last time I used arrays, he made me redo the assignment. Thank you for al your help