There isn't actually a code for fruit, but there are plenty of ways to get it. You can shake a coconut from the beach, and sometimes Mom will mail you a piece of fruit. Every fruit that isn't your town's native type sells for 500 bells, so collecting them is worthwhile.
You can also get fruit by sending neighbors gifts you don't need—they may write back and send some in return—or by visiting another player's town and picking fruit there.