This looks like homework. We don't do homework here (if we can avoid it). Ask your prof/TA for help.
Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Mon, Sep 19, 2016 at 3:39 AM, Kanika Sahni <kanikasahni...@gmail.com> wrote: > Input1: A list of distinct numbers,L1 > Input2: A single number, T > > Output all combinations of L1 that can yield T using +,-,*,/. > > eq: > L1=[4,5,2,3] and T=6. Output: [2*3],[2+4],[5+3-2],[3*4/2] ..... all other > combinations. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.