This is the major flaw with iMacs. You buy a beautiful display that you can't ever use separate from the built in computer. There are no 'inputs' for you to plug anything else for display from.
Once you are done with the computer in the iMac, you will lose a perfectly good, gorgeous 24" display.