Jumping function

Hello I am quite new in gaming.
Can any one tell me how to successfully make a jumping game. I do not need the entire code n all. But could not find the logic behind it.

If you can suggest any tutorial or example, that will be helpful.

Thanks in advance.