pratik-choudhari / AlgoCode

Welcome everyone!🌟 Here you can solve problems, build scrappers and much more💻
https://github.com/pratik-choudhari/AlgoCode
MIT License
131 stars 166 forks source link

Find the Pth term in A.P #9

Closed pratik-choudhari closed 4 years ago

pratik-choudhari commented 4 years ago

Feature ✅

Description

Given mth and nth term of an AP, find the pth term

Example

Format: m n mthterm nthterm p Input: 6 10 12 20 5 Output: 10 Mention programming language while requesting assignment

vedanthv commented 4 years ago

Hi, which language can I code in?

ankitgoel25 commented 4 years ago

@pratik-choudhari I would like to work on this issue.

ankitgoel25 commented 4 years ago

Sorry to say @pratik-choudhari , but your question is wrong. If you want to find pth term then the output should be 10 and if you want to find sum of pth terms then the answer would be 30.

So, I am making a pull request for both sum of pth terms and for a single pth term as your output!

pratik-choudhari commented 4 years ago

My mistake @ankitgoel25, sum and term sounds good! Please specify the language

pratik-choudhari commented 4 years ago

@vedanthv Python, Java, C, C++

ankitgoel25 commented 4 years ago

Hi @pratik-choudhari , this is my first time contributing to Hactoberfest and open source as well. I made a pull request for the issue in C++ language. Please review my PR and do tell me if I need to do some corrections. Thank You

DevanshD3 commented 4 years ago

Hey I would like to code the python version of it!

instareasy commented 4 years ago

I would like to code the solution for this set in JAVA.

Raksha25 commented 4 years ago

Hi @pratik-choudhari , I can take this up in Java.

pratik-choudhari commented 4 years ago

@DevanshD3 assigned for python, @instareasy assigned for java