write a program that allows the user to enter his or her two favorite food.The program should then print out the name of a new food by joining the original food names together.

Recommended Answers

All 2 Replies

What language are you using, and what do you have so far?

Here's my solution in Brainf#ck:

https://gist.github.com/anonymous/6422016

Sample run:

Please enter your favorite food:
apple
Please enter your second favorite food:
banana
This will be your new favorite food:
applebanana

This was fun.

Edit: Moved the code to a gist because I realized it's way too long to post here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.