The concept is:
1. YOU try to implement whatever you want to program OR whatever your assignment is.
2. YOU encounter a problem or you have doubts about some specific thing.
3. YOU post your specific question along with the code that you have made so far.
4. We try to help YOU overcome YOUR problem, so that you can learn from it.
The alternative path:
1. You hire someone to program for you.
2. You pay this person for his or her efforts.
Just give me some logic to work on. I'm not able comprehend anything from it. I know that i can use two for loops, One for numerator and one for the denominator but can someone please elaborate it. :/